GetString System Query Command

GETSTRING AmigaOnly

Opens a dialog box with one text string control into which the user can type a string, and two buttons for exit button.

getstring [STRING default] [TITLE label] [POSBUTTON label] [NEGBUTTON label]

STRING/s The default string for the text control.

Default=blank.

TITLE/s The label for the text string control.

Max length=8. Default=blank.

POSBUTTON/s The label for the positive button.

Default=Ok.

NEGBUTTON/s The label for the negative button.

Default=Cancel.

Results:

If NEGBUTTON is chosen, RC is set to 10. If POSBUTTON is chosen, RC is set to 0 and returns the string to RESULT.

Notes:

Precede the character to underscore as a bound keyboard equivalent in the label name. For example, "_Done" would make "D" the keyboard shortcut for the "Done" button.

Examples:

'getstring string "Erase this." title "_Text" ยจ
posbutton "_Yes" negbutton "_No"'
userstring=RESULT
button=RC

 

GetString  Command Definition  url:PGScmd/getstring
  created:2006-03-30 22:20:08   last updated:2006-03-30 22:20:08
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For GetString
Dan Kilroy wrote...2006-05-04 16:40:47

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

string = GetString ([STRING default] [TITLE title] [POSBUTTON ok] [NEGBUTTON cancel])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For GetString