- Code: Select all Expand view
#include "Fivewin.ch"
FUNCTION MAIN()
TEST1()
RETURN NIL
STATIC FUNCTION TEST1()
LOCAL oDlg
DEFINE DIALOG oDlg;
TITLE "Test1"
@ 1, 1 BUTTON "Switch to test2";
ACTION ( oDlg:End(), TEST2() )
ACTIVATE DIALOG oDlg;
CENTER
? "Exiting from test1"
RETURN NIL
STATIC FUNCTION TEST2()
LOCAL oDlg
DEFINE DIALOG oDlg;
TITLE "Test2"
@ 1, 1 BUTTON "Switch to test1";
ACTION ( oDlg:End(), TEST1() )
ACTIVATE DIALOG oDlg;
CENTER
? "Exiting from test2"
RETURN NIL
Thanks for any help.
EMG