Skip to content

Instantly share code, notes, and snippets.

@jbratu
Created July 4, 2016 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbratu/986eb382de31a25558c508447ef5943d to your computer and use it in GitHub Desktop.
Save jbratu/986eb382de31a25558c508447ef5943d to your computer and use it in GitHub Desktop.
Example showing how to use the Msg function with custom button text.
WantsFries = '' ;* Set to 'No' or 'Yes' after Msg.
Def = ""
Def<MTEXT$> = "Do you want fries with your order?"
Def<MTYPE$> = "BNo Fries,Fries" ;*B indicates beginning of comma separated list.
Def<MICON$> = "?"
Resp = Msg(@window, Def)
Begin Case
Case Resp = char(27) Or Resp = 1
WantsFries = 'No'
Case Resp = 2
WantsFries = 'Yes'
End Case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment