"Error trying to create dialog: MyDialog"
In the help on Dialogs there is nothing about where in the code to put the definition code for the Dialog. Should it be in the loop (dialog is redefined each time) or before the loop (only executes once). The error does not occur if I put the dialog definition before the loop. However I want the label text to be different each time, and this does not occur if the dialog code is outside of the loop.
Here is the code:
Code: Select all
Dialog>MyDialog
Caption=Macro scheduler
Max=0
Min=0
Close=0
Resize=0
Left=300
Top=300
Width=200
Height=100
Label=Run reference case simulation for %CRLF%%CountryName% model?,5,5
Button=Yes,10,40,50,20,1
Button=No,70,40,50,20,2
Button=Exit,130,40,50,20,3
EndDialog>MyDialog
Show>MyDialog,result
If>result=3,Stop
If>result=2,SkipRefRun