Click or drag to resize

ModalVariable Methods

The ModalVariable type exposes the following members.

Methods
 NameDescription
Public methodFormat Formats the specified numeric value and returns the formatted text string if the value has changed from the previous call. If the value has not changed and Force is false, returns an empty string to avoid redundant output. This modal behavior reduces NC file size by eliminating repeated modal values.
Public methodReset Resets the variable to force output on the next format call, overriding normal modal output rules. This ensures the next Format call produces output regardless of whether the value has changed.
Top
See Also