FILE_DIALOG

FILE_DIALOG N,T

SET THE FILE NAME T PROPOSED BY THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameters: 2
  • Group: System Objects

ACTION

The command FILTER_DIALOG N,T proposes the file name T for the object number N.

N is an object of type OPEN_DIALOG, SAVE_DIALOG, OPEN_DIALOG_PIC, SAVE_DIALOG_PIC.

SYNTAX: FILE_DIALOG N,F

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.
  • F = string expression.

USE

  • FILTER_DIALOG is used to propose a file name in the system object of type OPEN_DIALOG, SAVE_DIALOG, OPEN_DIALOG_PIC, SAVE_DIALOG_PIC

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If system object number N is not of the type : OPEN_DIALOG, SAVE_DIALOG, OPEN_DIALOG_PIC, SAVE_DIALOG_PIC.
  • If P is not a correct string expression.

EXAMPLE

dim f$

open_dialog 1

file_dialog 1,"MyFile.txt"

caption 0,"Check that the proposed file name is MyFile.txt"

f$=file_name$(1)

SEE ALSO

OPEN_DIALOG

SAVE_DIALOG

OPEN_DIALOG_PIC

SAVE_DIALOG_PIC

FILE_NAME$()

FILTER

DIR_DIALOG