<VALIDFNAME> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
<VALIDFNAME>
Syntax
<VALIDFNAME {filename} >
where:
filename parenthetical string
Description
<VALIDFNAME> returns 1 (TRUE) if a file called filename could be created
by the user, or already exists, otherwise it returns 0 (FALSE).
<VALIDFNAME> will return 0 if the user lacks SF capability and the named
file does not exist, but it will return 1 if the user lacks SF capability
and the file does exist.
Example
&SAVE filename <PROMPT "Please enter file name">
&BACK badname <NOT <VALIDFNAME <VAR filename>>>
This checks that a user has typed a valid filename in response to a
screen prompt. If filename is not valid, then the script goes back to
the label badname.
MPE/iX 5.0 Documentation