faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems : .dll Questions

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

35 of 70 people (50%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How can I use dll's methods in ASP pages ? Which is the syntax to use it ?

Jul 2nd, 2002 04:45
Dinesh Singhal, Luiz Paulo Rosa, Christophe SALLE,


After you create the object:
   set MyObject = Server.CreateObject("MyObject.Object1")
You can call its properties and methods:
   MyObject.prop1 = "test"
To call the method if it is not returning anything use
   Call MyObject.MethodName(parameter1,parameter2,....)
If the method is returning something then use
   varName=MyObject.MethodName(parameter1,parameter2,....)
You must know the methods the object has available.
Hope This Helps.



© 1999-2004 Synop Pty Ltd