How to create function in runtime in Vb6.0

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
end sub

Sub b_on
End sub

dim str as string
'str may be a_on or b_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 replies

Hi britto,

You can use CallbyName ..

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.