ChangeForm: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
CHANGEFORM(''newForm'')
ChangeForm(''newForm'')


'''Description'''
== Description ==


CHANGEFORM hides the current form and shows ''newForm''. When the current form is hidden, its onhide() function is called. When the new form shows, its onshow() function is called. The global variable NSBCurrentForm is set to ''newForm''.
ChangeForm hides the current form and shows ''newForm''. When the current form is hidden, its onhide() function is called. When the new form shows, its onshow() function is called. The global variable NSBCurrentForm is set to ''newForm''.


'''Example'''
== Example ==


<pre>
<pre>
Line 22: Line 22:
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 29: Line 29:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[form|FORM]]
[[form|FORM]]
[[Category:Language Reference]]

Revision as of 20:20, 8 August 2012

ChangeForm(newForm)

Description

ChangeForm hides the current form and shows newForm. When the current form is hidden, its onhide() function is called. When the new form shows, its onshow() function is called. The global variable NSBCurrentForm is set to newForm.

Example

REM ChangeForm sample call

ChangeForm(Form2)             
'go to next form without transition

Function Form1_onhide()
  MsgBox "Old Form Hidden"
End Function

Function Form2_onshow()
  Msgbox "Show form " & NSBCurrentForm
End Function

Output

Lowercase = a
Uppercase = A

Related Items

FORM