Dialogs
InputBox(const ACaption, APrompt, ADefault: string): string; |
Function A modal dialog containing an "editable box" is displayed. InputBox function returns the string entered into this box by the user or, if the box is not edited, a default string. |
Flash(S:string); |
Procedure FLASH displays non-modal text alert window until another modal dialog or a new top window is selected. |
Query(Caption:string;[Timeout:number;Default:boolean]):boolean; |
Function QUERY function displays a dialog requesting a YES or NO response. |
ShowMessage(S:string;[Timeout:number]); |
Procedure SHOWMESSAGE displays a modal dialog alert message. |
Browse[(Caption[[,InitialDir],Filters]:string)]:string; |
Function BROWSE function returns the string resulting from a "Browse for a file" dialog. |
|
j:=browse( |
|
Tip: your RS/2 script should check for an empty string return: this indicates the dialog has been cancelled. |