PML Customisation
User Guide
FMSYS Object and its Methods
: Setting the Default Format Object for Text Fields
Setting the Default Format Object for Text Fields
The SetDefaultFormat method is used to provide a default global format object to be used to format typed text fields when no specific format is defined at design time. The SetDefaultFormat method can only be called once to avoid inconsistency across appware.
Call the method as follows:
.SetDefaultFormat(!!fmt is FORMAT)
where !!fmt must be a global variable.
After calling the method the value can later be retrieved by referencing the DefaultFormat() method as follows:
!text=!myVar.String(!!fmsys.DefaultFormat())
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.