Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / August 2004



Tip: Looking for answers? Try searching our database.

Calling dynamic subs & procedures

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roel - 22 Aug 2004 13:55 GMT
Hello,

I want to call a sub as a variable. Is there anyone who knows how I
can do that ? See example below.

THIS DOESN'T WORK:

Dim strSub As String

strSub = "ShowMessageBox()

Call strSub

Private Sub ShowMessageBox()
 MsgBox "Hello MessageBox"
End Sub
Steven - 31 Aug 2004 01:14 GMT
How about giving this a try.

Dim strSub As String

strSub = "ShowMessageBox"

Call strSub

Private Sub ShowMessageBox()
 MsgBox "Hello MessageBox"
End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.