PML Customisation
User Guide
Gadget Set
:
Text Gadgets
: Unset Text Fields
Unset Text Fields
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
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.