Cicode Programming Reference > Cicode Function Categories > Format Functions Introduction > FmtGetField

FmtGetField

Gets field data from a format template. Use this function to extract data after a call to StrToFmt().

Syntax

FmtGetField(hFmt, Name)

hFmt:

The format template handle, returned from the FmtOpen() function. The handle identifies the table where all data on the associated format template is stored.

Name:

The field name.

Return Value

The data (as a string). If the field does not contain any data, an empty string will be returned.

Related Functions

StrToFmt, FmtSetField, FmtToStr

Example

StrToFmt(hFmt,"CV101 Raw Coal Conveyor");
Str=FmtGetField(hFmt,"Name");
! Str will contain "CV101".

See Also

Format Functions