GetDOSFilename (let end user select file)

Top  Previous  Next


GetDOSFilename( filename ), VIRTUAL


Prompts the end user to select the file to process.


The label of the ASCIIFile property's NAME attribute variable which receives the selected filename.

The GetDOSFilename method prompts the end user to select the file to process and returns a value indicating whether the end user selected a file or did not select a file. A return value of one (1) indicates a file was selected and filename contains its pathname; a retun value of zero (0) indicates no file was selected and filename is empty.


The GetDOSFileName method uses a SelectFileClass object to get the filename from the end user.

Return Data Type:     BYTE


MyAsciiFileClass.Reset FUNCTION(*STRING FName)

RVal      BYTE(True)

SavePath  CSTRING(FILE:MaxFilePath+1),AUTO





   IF ~FName AND ~SELF.GetDOSFilename(FName)






     MESSAGE('Can't open ' & FName)






 IF RVal





See Also:

ASCIIFile, SelectFileClass