Contents | Index | < Browse | Browse >
Command:
dir,success = GetDir title
Description:
Popups a file requester where the user can pick one directory. If the
user selects cancel, "success" will be 1, else it will be 0.
Input:
title - a string which contains the name of the requester title.
Result:
dir - the path the user has selected.
success - this is an error code where 0 means ok and 1 means error.
Note that the result is in RC not in RESULT.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Command:
name,success = GetFile title
Description:
Popups a file requester where the user can pick one file. If the user
selects cancel, "success" will be 1, else it will be 0.
Input:
title - a string which contains the name of the requester title.
Result:
file - the filename with path which the user has selected.
success - this is an error code where 0 means ok and 1 means error.
Note that the result is in RC not in RESULT.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Command:
num,success = GetNumber min max title
Description:
Popups a number requester where the user can write a number. If the
user selects cancel, "success" will be 1, else it will be 0.
Input:
min - the minimum of the range.
max - the maximum of the range.
title - a string which contains the name of the requester title.
Result:
num - the number the user has written.
success - this is an error code where 0 means ok and 1 means error.
Note that the result is in RC not in RESULT.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Command:
string,success = GetString title
Description:
Popups a string requester where the user can write a string. If the
user selects cancel, "success" will be 1, else it will be 0. The
"string" will be the entered string.
Input:
title - a string which contains the name of the requester title.
Result:
string - the string which the user have typed.
success - this is an error code where 0 means ok and 1 means error.
Note that the result is in RC not in RESULT.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Command:
pressed = Request gadget text
Description:
This will popup a requester where the user can select between a couple
of gadgets, like ok and cancel. The "gadget" is a string with all the
gadgets you want in the requester seperated with a "|", ex."ok|cancel"
or "yes|maybe|no".
Input:
gadget - a string with the gadget names.
text - the text which is printed in the requester window.
Result:
pressed - the number of the gadget which the user has pressed. The
rightmost gadget is number 0, the rest of the gadgets is
numbered from left to right.