SELECTFILE$ opens the Windows file dialogue and returns the file selected

Syntax

SELECTFILE$(DialogueTitle$, Dir$, Filter$)

Arguments

Remarks

  1. If the dialogue is closed by "Cancel", "NullString" is returned by SELECTFILE$
  2. The file dialogue can also be invoked to assign a value to a string variable using the following meta command (attribute) in the data slot of the parameter:

@FILEDIALOGUE 
DialogueTitle$ 
Dir$ 
Filter$

Examples

Selection from a list of different types

SELECTFILE$("Open the relevant TeLiTab file or program output...", "C:\Data\", "Telitab Files (*.qdb)|*.qdb|External Process Output Files (*.epo)|*.epo|All Files (*.*)|*.*")

returns a file dialogue with the filters:

Selection from groeps of file types

SELECTFILE$("Open the relevant picture...", "C:\Data\", "Image Files(*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|All files (*.*)|*.*")

returns a file dialogue with the filters:

 

 


 

 

Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview