Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CALL A SUBROUTINE BY VARIABLE (STRING) NAME VB.NET 2

Status
Not open for further replies.

paulgenga

Programmer
Jan 8, 2004
61
KE
Hi,

I am painfully stuck on this please help.
I have created a DLL through which I need to call procedures in my Application with parameters.
I hereby hope to find a way to practical function more or less like this one...

Public Sub Main(ByVal formName as String, ByVal subName as String, ByVal param as Object)
' subName may be contain the value AAA or BBB in my formName
End Sub
'===========================
Public Sub AAA(param)
'do something for AAA
End Sub
'===========================
Public Sub BBB(param)
'do something for BBB
End Sub

I greatly appreciate your help/advice on this problem..

Regards

pgenga

:-|Bob
 
hi,

If you are running this in a Microsoft application, like Excel or Word, then...
Code:
 Application.Run Param

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Thank You for your Reply, I am sorry...
I have created a VB.Net Form Application. from the DLL I am trying to access and execute a procedure in these form classes...

Please help me achieve this...

:-|Bob
 
...after all, this forum is Visual Basic for Applications not .net

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
@Gruuuu
I am sorry but I Server not Found for the provided forum,
Would you please review the Link for me....

Paul

:-|Bob
 
Forum796

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top