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

AVEVA™ Plant SCADA

StrToFmt

  • Last UpdatedJul 18, 2023
  • 1 minute read

Converts a string into field data for a format template. This function is useful for splitting a string into separate strings. After the string is converted, you can call the FmtGetField() function to extract the individual data from the template fields.

Syntax

StrToFmt(hFmt, String)

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.

String:

The source string.

Return Value

The string (formatted as template field data).

FmtOpen, FmtGetField

Example

StrToFmt(hFmt,"CV101 Raw Coal Conveyor");

Name=FmtGetField(hFmt,"Name");

! Sets Name to "CV101".

See Also

String Functions

Using the Caret Escape Sequence Character

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