GetFilename (return the filename)

Top  Previous  Next

 

GetFilename

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