User Tools

Site Tools

Navigation:  ABC Library Reference > ASCIIFileClass > AsciiFileClass Methods >====== GetDOSFilename (let end user select file) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

GetDOSFilename( filename ), VIRTUAL


GetDOSFilename Prompts the end user to select the file to process.
filename 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

getdosfilename_let_end_user_select_file_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)