VB refering to Variables
Posted on 2003-11-16
I am currently writing my first program in VB and i am stuck!!
I have got this line of code in a public sub...
Rand1 = Int(Rnd * 8) + 1
and i would like to call or refer to the variable in a different public sub.
this is the line of code in the other public sub...
Command3(1).Tag = Rand1
but it doesn't keep the value!!??
I'm sure there is an easy way of doing this? is its possible or is there something else i could do?
Please help =)