Hello ptaylor2014. Please read the full answer, posted above (or click this link).ptaylor2014 wrote:Will someone please give the correct answer to my question included above?
In short, to handle two forms, one named MyForm.pbf which contains two buttons, one button to open the second form, Accounts.pbf, and another button to end the program, the code should look something like this:
Code: Select all
IncludeFile "MyForm.pbf"
IncludeFile "Accounts.pbf"
Procedure Button_0_Procedure(EventType)
OpenAccounts()
EndProcedure
Procedure Button_1_Procedure(EventType)
End
EndProcedure
OpenWindow_0()
Repeat
event = WaitWindowEvent()
Select EventWindow()
Case Window_0
If Window_0_Events(event) = #False
End
EndIf
Case Accounts
If Accounts_Events(event) = #False
CloseWindow(Accounts)
EndIf
EndSelect
ForEver
Hope you find it!
