Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Only the first field (<mode>) is required.

Example

 
Code Block
/* This code returns as output the variable File which has the new name selected. 
The selection types for this example dialog are bitmaps and all files. 
For each file type, supply the description followed by "/" followed by the file filter followed by "/".   */
 
CFOpt = ""
CFOpt<1> = 0    ;* open dialog
CFOpt<2> = "Bitmaps (*.bmp)/*.bmp/All Files (*.*)/*.*/"
CFOpt<3> = 1    ;* default type is the first one (bitmaps)
CFOpt<4> = "oilogon.bmp"    ;* default filename
CFOpt<5> = 0x200 ; * OFN_ALLOWMULTISELECT from the Microsoft SDK
CFOpt<6> = drive() : "\BMPS\" ; * initial directry
File = Utility("CHOOSEFILE", @window, CFOpt)
Call msg(@window, "You selected the file " : File)
 

...

Remarks

For more information about Flags, refer to the Microsoft Windows SDK.

...