OPENDEFAULT
8.4E, PLBCMP GUI Only
The OPENDEFAULT instruction initializes the default prompt string and the default file name of a standard file open dialog. When a file is opened through an OPEN instruction and the file name is a null character variable, the standard file open dialog retrieves a file name to open. The prompt and default file name used is the last one specified by the OPENDEFAULT instruction. The instruction uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
prompt
Required. A previously defined Character String Variable or Literal containing the default prompt to use with the standard file open dialog.
name
Required. A previously defined Character String Variable or Literal containing the default file name to use with the standard file open dialog.
Flags Affected: NONE
Note the following:
If no previous OPENDEFAULT instruction has been executed in the program, the default prompt is blank and the default file name mask is blank.
A CHAIN instruction resets the default prompt to blank and the default file name mask to blank.
The GETFNAME instruction may be used in conjunction with the standard open and prep dialogs.
See Also: PREPDEFAULT, OPEN, Disk I/O Instructions
![]() |