|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I am a new programmer.I am creating a dll in VB6. The dll has to update a recordset in the AS/400 table.
I have to reference my dll into another VB application. From this application I have to pass the following: Tablename, sqltext, recordset. Can you help me please. |
|
#2
|
|||
|
|||
|
Generally you can pass parameters as arguments to a method of your dll. Or you can provide properties in your dll that the calling application can set before it executes some method.
myresult = myobject.mymethod(arg1, arg2, arg3) is a typical caller syntax In your dll Code:
Public Function mymethod(arg1, arg2, arg3) as mydatatype mymethod = something 'whatever code you need using the args passed End Function Of course this is not executable code, this is just a sketch of how you can do what you want. Refer to the documentation or many websites for tutorials and more information.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Passing parameters to a dll |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|