PREPDEFAULT


7.8.5, PLBCMP GUI Only

 

The PREPDEFAULT instruction initializes the default prompt string and the default file name of a standard file prep dialog. When a file is created through a SPLOPEN or PREP instruction, and the file name is a null character variable, the standard file prep dialog retrieves a file name to create. The prompt and default file name used is the last one specified by the PREPDEFAULT instruction. The instruction uses the following format:

 

 

[label]

PREPDEFAULT

{prompt},{name}

 

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 prep dialog.

name

Required. A previously defined Character String Variable or Literal containing the default file name to use with the standard file prep dialog.

Flags Affected: NONE

Note the following:

  1. If no previous PREPDEFAULT instruction has been executed in the program, the default prompt is blank and the default file name mask is *.*

  2. A CHAIN instruction resets the default prompt to blank and the default file name mask to *.*.

  3. The GETFNAME instruction may be used in conjunction with the standard open and prep dialogs.

 

 

See Also: OPENDEFAULT, SPLOPEN, PREP, Disk I/O Instructions

 



PL/B Language Reference PREPARE (IFILE) READ, READTAB, READLK