ChangeForm: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
m (Ghenne moved page Changeform to ChangeForm)
Line 18: Line 18:


Function Form2_onshow()
Function Form2_onshow()
   Msgbox "Show form " & NSBCurrentForm
   Msgbox "Show form " & NSBCurrentForm.id
End Function
End Function
</pre>
</pre>

Revision as of 16:46, 24 December 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.id
End Function

Output

Lowercase = a
Uppercase = A

Related Items

Form