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


Declaration:TOnFileSelectEvent = procedure (Sender: TObject; Parameters: string; var UserAction: TModalResult; var SelectedFileName: string) of object;

The type declaration TOnFileSelectEvent declares the event which occurs when the user has to select or enter a filename. The parameter Parameters contains a string holding the parameters which have been defined in the property Parameters. The contents of Parameters can be used to control the behavior of the file select dialog (as an alternative, you can use the methods ExtractParamAsString, ExtractParamAsInt, or ExtractParamAsDouble to extract a particular parameter from the property Parameters).

The user action (mrOK or mrCancel) has to be assigned to the variable parameter UserAction. The variable parameter SelectedFileName has to be set to the filename specified by the user.

Last Update: 2012-Okt-20