Greetings, I'm a newbie with NS Basic although I have been programming for many 
years. 

Can anyone tell me how to pass values from one form to another.  Here is the 
code I am using.

Form1:
myVar = 10
function Button1_onclick()
  myVar = 3000 
  ChangeForm(Form2)
End function

Form2:
Label2.textContent = myVar

Form 2 always displays 10 instead of 3000.
I tried defining the variable in the Globals section but that did no good.  I 
tried using local storage and even putting it in the database, I still get the 
original value.

My understanding is that a variable is considered global unless it is defined 
within a function.

Any help would be much appreciated.
This is app studio 2.5.0.3

Thanks,

Pat

-- 
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.

Reply via email to