When defining a Dialog Window, I can set default values for the objects, but they do not show up in the Dialog Window when Show is executed. The value of the variable is OK, but the display does not show for the operator to see.
Example:
In this case the default value of the ComboBox named Action is "Shut Off", and the default value of the ComboBox named Reason is "Normal-end of work". But when the Dialog is shown, the ComboBox fields appear as blanks. Now even though the variables have the correct default value, the operator will not know that, , forcing the operator to make entires....
...
Let>WindowsExit.Action=Shut Down
Let>WindowExit.Reason=Normal-end of work
...
...
Dialog>WindowsExit
Caption=Shut Down Windows
Top=144
Width=315
Left=312
Height=230
Label=What do you want the computer to do?,56,16
Label=%ComboHelp%,34,72
Label=Reason:,21,112
Label=Enter Other Reason / optional Note,125,112
Button=OK,28,160,75,25,1
Button=Cancel,120,160,75,25,2
Button=Help,212,160,75,25,3
ComboBox=Action,82,40,145,Log Off%CRLF%Re Boot%CRLF%Shut Down
ComboBox=Reason,8,128,121,Normal-end of work%CRLF%Low Resources%CRLF%Problem noted here:%CRLF%Required by System%CRLF%Software Change%CRLF%System is hung%CRLF% Testing%CRLF%See Other Reason:
Edit=Other,136,128,164,
EndDialog>WindowsExit
//Prompt User to select method of Shutdown
Label>ShowWindow
Solution:
Modify the Dialog to display the values of the variables in the fields whenever the Show command is executed.
Thanks again for listening.