The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



FilterIndex


Unit: SDL_filesys
Class: TUnivSaveDialog
Declaration: property FilterIndex: integer;

The FilterIndex property determines which of the file types specified in the "filter" Parameter is selected by default when the standard dialog opens (UseStandardDialog = TRUE). The valid range of FilterIndex is between 1 and the number of specified file types. Setting FilterIndex to an invalid value will automatically select either the first or the last file type (whichever is closer).

On return of the Execute method the FilterIndex property reflects the selected file type.

Hint: A user defined dialog has to retrieve the filter index from the calling dialog by using the Sender parameter of the OnFileSelect event, i.e. TUnivSaveDialog(Sender).FilterIndex.



Last Update: 2023-Feb-06