www.icetips.com  Icetips Utilities Documentation 6/23/2012    

Files Class:  GetFilePrefix

Previous  Top  Next  


Prototype: (FILE pF),String

 

pFReference to a file structure.

 

ReturnsReturns the prefix of the file structure. 

 

This method retrieves the prefix of the file by getting the label of the first field in the file structure and then calling the GetFieldPrefix method in the String Class to parse out the prefix.  Note that the prefix is returned without the trailing colon (:)

 

Example:

ITF  ITFilesClass

F        File,Driver(ASCII),PRE(ASCII),CREATE

Record     Record

F1           String(255)

          End

        End

 

Code

Message('The file prefix is: ' & ITF.GetFilePrefix(F))

 

 

See also:

GetFieldPrefix

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getfileprefix_filesclass.htm