Version 3 Technical Highlights - New Message Types

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 OCT 19923.0+EXPERTMESSAGE, MSG

The default "Press any key to continue" type message now automatically includes an "OK" button which may be operated with the mouse. Other message types which may be used are as follows

Message TypeDescription
BODisplays text with a normal "OK" button. Returns the key pressed to OK (including cursor keys and the Escape key). If clicked with the mouse returns a 1.
BOCDisplays text with an OK button and a Cancel button. Returns a 1 if "Yes" clicked and (somewhat inconsistently) a 0 (rather than a null) if Cancel is chosen.
BNYUsed like an R message but prompts with "Yes No" buttons. "Yes" returns 1, "No" returns 0
BNYCUsed like an R message but prompts with "Yes No Cancel" buttons. "Yes" returns 1, "No" returns 0 and "Cancel" returns null. NB although it would seem logical to call this BYNC message type to reflect the prompting order this is not the case. This is doubtless unconnected to the Park Avenue, NYC origin of portions of this code.
BLabel{,Label2,Label3}Functionally equivalent to the BNYC message type but any user defined text can be used in place of Yes/No/Cancel. Returns 1 for first choice, 0 for second and null for third.

(Volume 4, Issue 5, Pages 10,11)