Quote:
> Hi how do I declare c++ like global declaration in VB?
> I am trying to call a procedure to get some input from user then
> return values to main procedure but I am having problem doing this.
> Please help.
if you are using a subroutine or function you should pass the values
required.
example
private sub MY_Input_routine(my_input as string)
'
' get user input
'
my_input = xxx ' xxx is user input
end sub
when you do a call MY_input_routine(my_value)
the variable my_value will contain the user input.
This keeps all variables local and helps to identify when values are
being passed.
The other way is to put a DIM my_value as string (or whatever) in the
declarations section of your form. This seems to make it global.