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

AVEVA™ Unified Engineering

Unset Text Fields

  • Last UpdatedOct 30, 2024
  • 1 minute read

All of text fields displayed a text string representing the value of a variable or object of a given Type. The string representing an unset value is 'Unset'.

See Unset Variable Representations and UNSET Values and UNDEFINED Variables for a discussion of unset variables.

Note:
Some older style 'untyped' PML1 text fields use the (null) string '' to represent unset values for numeric fields. You should avoid using these old style fields.

You can force an unset value for any text field (of any type) using:

!This.MyTextclear()

You can also assign an unset value to a text field:

!x = REAL() ‑ defines an unset variable type REAL

!x = STRING() ‑ defines an unset variable type STRING

!This.MyText = !x

You can check for an unset text gadget of any type using the BOOLEAN method unset():

If( !This.MyText.val.Unset()) then

 -- value of text is unset

 ...

endif

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