Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

FmtGetFieldHnd

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets field data from a format template. Use this function to extract data after a call to StrToFmt(). This function has the same effect as FmtGetField(), except that you use a field handle instead of the field name.

Syntax

FmtGetFieldHnd(hFmt, hField)

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.

hField:

The field handle.

Return Value

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

FmtGetField, StrToFmt, FmtOpen, FmtFieldHnd

Example

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

See Also

Format Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in