Hi,
does anyone know how to declare and use global variables in VB?
Eg, I have an integer variable called temp1
which i need to use in two different subs.
- in sub1 when i use the variable, I assign an integer value to it
- in sub 2 when i use the var iable i use its value in an SQL string
im not sure why, but its not storing the value for the sub2 ??
whats the right way to do this?
Bella
does anyone know how to declare and use global variables in VB?
Eg, I have an integer variable called temp1
which i need to use in two different subs.
- in sub1 when i use the variable, I assign an integer value to it
- in sub 2 when i use the var iable i use its value in an SQL string
im not sure why, but its not storing the value for the sub2 ??
whats the right way to do this?
Bella