ChangeForm: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 24: | Line 24: | ||
== Output == | == Output == | ||
(msgbox showing "Old Form Hidden") | |||
(msgbox showing "Show form Form2") | |||
== Related Items == | == Related Items == |
Revision as of 14:09, 1 February 2013
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.id End Function
Output
(msgbox showing "Old Form Hidden") (msgbox showing "Show form Form2")