home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
new
/
comm
/
mail
/
thor
/
thor.lha
/
rexx
/
requeststring.thor
< prev
next >
Wrap
Text File
|
1994-08-06
|
1KB
|
38 lines
/*
**
** requeststring.thor - will open a requester which accepts any string
** input you give it, upto MAXCHARS number of
** characters. If nothing is entered, the
** requester is canceled or fails for some
** other reason, the command will
** return 10. Will return 0 on success and
** result will contain the string entered.
** Note that the MAXCHARS can't be higher than
** 1000. BUTTONTEXT is the text to be in the
** gadgets and the shortcut can be set with
** '_' in front if the key that is to act as
** a shortcut. The text for each gadget is
** separated with a '|', and it's possible
** to define 1 or more gadgets, although more
** than two gadgets won't do any good. If a
** single gadget it used, the command can only
** be canceled by entering no text in the gadget.
** 2 gadgets, no more and no less, is highly
** recommended for this requester.
**
** Template:
**
** TITLETEXT=TITLE/A,BUTTONTEXT=BT/A,INITIALSTRING=ID,MAXCHARS/N/A
*/
options results
address THOR.01
THORTOFRONT
REQUESTSTRING TITLE '"Enter something:"' BT '"_Ok|_Cancel"' ID '"Some text"' MAXCHARS 40
say result