How to create function in runtime in Vb6.0

Closed
jmbritto - Feb 23, 2009 at 11:20 PM
 eliza81 - Feb 10, 2010 at 05:42 AM
Hello sir,
Have a good day. i m britto working as software programmer in Vb6.0
In VB6.0, i have some procedure like
sub a_on
msgbox"A"
end sub

Sub b_on
msgbox"B"
End sub

dim str as string
'str may be a_on or b_on

str="a_on"
i m planning to call procedure a_on or b_on based on the variable str
how to call the procedure a_on or b_on depending on variable

2 responses

Hi britto,

You can use CallbyName ..

-Peeyush
3
All of us must have come across the fact that some set of codes are specific to a particular OS only and incompatible with others. In some instances they may also lead to system crashes.

In such cases we need to track and identify the OS first and then proceed accordingly. So, here is how you can write a program in VB6.0 that can run in different Windows operating systems.


thanks
Eliza
0