www.icetips.com  Icetips Utilities Documentation 7/6/2014    

String Class:  GetFieldPrefix

Previous  Top  Next  


Prototype: (String pFieldName),String

 

pFieldNameName of field/column to split

 

ReturnsPrefix of the field

 

This method uses the SplitFieldName method to split the prefix from the field name.  It returns the prefix without the trailing colon.  This can be very useful when parsing Clarion code or TXA/TXD code to extract field information.

 

Example:

ITS  ITStringClass

Fn   String(20)

Code

Fn = 'MYF:SysID'

Message('Prefix of ' & Fn & ' = ' & ITS.GetFieldPrefix(Fn))

 

 

See also:

CombineFieldName

SplitFieldName



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