Code - Dosent work
nChoice = Dialog.Message("Notice", "Your message here.", MB_OKCANCEL,
MB_ICONINFORMATION, MB_DEFBUTTON1);
if nChoice == true then
Application.Exit(0);
elseif nChoice == false then
Label.SetEnabled("Gun", true);
end
End -
Professional Software Development Tools
Code - Dosent work
nChoice = Dialog.Message("Notice", "Your message here.", MB_OKCANCEL,
MB_ICONINFORMATION, MB_DEFBUTTON1);
if nChoice == true then
Application.Exit(0);
elseif nChoice == false then
Label.SetEnabled("Gun", true);
end
End -
Dialog.Message returns a 'number' instead of a boolean.
instead of testing 'true', test for a '1' or use the constant 'IDOK'.
nChoice = Dialog.Message("Notice", "Your message here.", MB_OKCANCEL,
MB_ICONINFORMATION, MB_DEFBUTTON1);
if nChoice == true then
Application.Exit(0);
elseif nChoice == false then
Label.SetEnabled("Gun", true);
end
hthCode:if nChoice == IDOK then