User Tools

Site Tools


getfilename_return_the_filename_.htm
Navigation:  ABC Library Reference > ASCIIFileClass > AsciiFileClass Methods >====== GetFilename (return the filename) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

GetFilename

blk2blue.jpg

The GetFilename method returns the name of the ASCII file.

Implementation:

The GetFileName method uses the NAME function. See the Language Reference for more information.

Return Data Type:     STRING

Example:

INCLUDE('ABASCII.INC')                  !declare ASCIIViewerClass

Viewer    AsciiViewerClass,THREAD        !declare Viewer object

Filename  STRING(255),THREAD             !declare filename variable

AsciiFile FILE,DRIVER('ASCII'),NAME(Filename),PRE(A1),THREAD

RECORD     RECORD,PRE()

Line        STRING(255)

          END

         END

CODE

!program code

MESSAGE('Filename:'&Viewer.GetFilename()) !get the ASCII filename

getfilename_return_the_filename_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1