Dim UsersFilter Set UsersFilter = CreateObject("UserManager.UsersFilter") UsersFilter.SomeMethod SomeParameters UsersFilter.SomeProperty = SomeValue
You can also use CreateObject method method of Server object (ASP) to put the UsersFilter object to page scope or CreateObject method of WScript object in WSH.
You can also put the object to Application or Session scope using <object ...> tag in global.asa
<object runat="server" scope="application" id="UsersFilter" progid="UserManager.UsersFilter"> </object>
Please use ActivexObject object in JScript/JavaScript to create UsersFilter object:
var UsersFilter; UsersFilter = new ActiveXObject("UserManager.UsersFilter"); UsersFilter.SomeMethod(SomeParameters) UsersFilter.SomeProperty = SomeValue ...
VBA 5/6: You can reference the library using menu Project -> References
-> select 'ActiveX UserManager 1.7' in the listbox (or Project ->
References -> Browse -> select UserMan.OCX file).
MSAccess, Word, Excel: Tools -> Macro -> Visual Basic Editor, then Tools
-> References
Then you can write:
Dim UsersFilter As New UserManager.UsersFilter UsersFilter.SomeMethod SomeParameters UsersFilter.SomeProperty = SomeValue ...or
Dim UsersFilter As UserManager.UsersFilter ... Set UsersFilter = New UserManager.UsersFilter UsersFilter.SomeMethod SomeParameters UsersFilter.SomeProperty = SomeValue ...You can use CreateObject function also, of course:
Dim UsersFilter As UserManager.UsersFilter ... Set UsersFilter = CreateObject("UserManager.UsersFilter") UsersFilter.SomeMethod SomeParameters UsersFilter.SomeProperty = SomeValue ...
You can reference the library using menu Project -> Add reference -> COM tab -> select 'ActiveX UserManager 1.7' in the listbox -> click Select. Then you can write (C#, J#):
//create a new UsersFilter objector (VBA)
UserManager.UsersFilter UsersFilter = new UserManager.UsersFilterClass();
UsersFilter.set_String("Some text value");
String SQL;
SQL = "Insert Into Table (BinaryColumn) values (0x" + UsersFilter.get_HexString() + ")"; ...
Dim UsersFilter As New UserManager.UsersFilter UsersFilter.SomeMethod(SomeParameters) UsersFilter.SomeProperty = SomeValue
DECLARE @UsersFilter INT, @OLEResult INT EXECUTE @OLEResult = sp_OACreate 'UserManager.UsersFilter', @UsersFilter OUT IF @OLEResult <> 0 PRINT 'Error create component UsersFilter' --Set a property of UsersFilter. EXECUTE @OLEResult = sp_OASetProperty @UsersFilter, 'PropertyName', @SomeSQLValue IF @OLEResult <> 0 PRINT 'PropertyName set problem' --Get a value of a property of UsersFilter. EXECUTE @OLEResult = sp_OAGetProperty @UsersFilter, 'PropertyName', @SomeSQLValue OUTPUT IF @OLEResult <> 0 PRINT 'PropertyName get problem' --Call some method of UsersFilter. EXEC @OLEResult = sp_OAMethod @UsersFilter, 'MethodName', @ReturnValue OUTPUT, @parameter1, @parameter2
© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz