Jump to content

NumericText class

From LabVIEW Wiki
Revision as of 23:13, 31 August 2019 by Q (talk | contribs) (Started page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
VI Server Class Information
Return to VI Server Class Hierarchy
Class Name class
Class ID {{{1}}}
Scope
Class Inheritance

This class is a top-level class.

Class Children

This class has no children.


The NumericText class is a class in the VI Server Class Hierarchy, (see also VI Server).

Properties

Show/Hide NumericText Properties Table

Legend
R/WReadable/Writable Permissions
RTEAvailable in the Run-Time Engine
Basic Development Environment
VI Scripting
Private
Deprecated
NumericText Properties Table
Property ID Short Name (English) Description R/W RTE
632E400 DisplayFormat Specifies the format and precision of the numeric text. Format can be 0-Decimal, 1-Scientific, 2-Engineering, 3-Binary, 4-Octal, 5-Hexadecimal, 6-Relative Time, 7-Time and Date, 8-SI, or 9-Custom (read-only). Precision is the number of digits after the decimal point.

This property is similar to the Display Format item on the shortcut menu of a numeric control or indicator.

This property is similar to the options on the Display Format page of the Properties dialog box.

R/W X
632E401 Format Specifies the format of the numeric text. This property accepts the following format values: 0-Decimal, 1-Scientific, 2-Engineering, 3-Binary, 4-Octal, 5-Hexadecimal, 6-Relative Time, 7-Time and Date, 8-SI, and 9-Custom (read-only). You cannot wire a value of 9 to this property because the value is read-only. This property returns a value of 9 if the object uses automatic formatting, the format string contains text, or the format string includes more than one format specifier.

If you select floating point representation for the numeric text, you cannot wire a value of 3, 4, or 5 to this property. Binary, Octal, and Hexadecimal formats are not valid for floating point numbers. If you wire one of these values, this property returns an error.

This property is an element of the Display Format property.

This property is similar to the Format option on the Display Format page of the Properties dialog box.

R/W X
632E402 Precision Number of digits after the decimal point. If you wire a value of 9 to the Format property, this property returns an error.

This property is an element of the Display Format property.

This property is similar to the Precision Type option on the Display Format page of the Properties dialog box.

R/W X
632E403 FormatString Gets and sets the format of the numeric control.

Refer to the valid format specifiers for numeric data types table for information about which format specifiers you can set depending on the data type of the numeric control and the format specifiers syntax elements table for descriptions of the syntax elements.

If you want to format a string to display time, enclose the string with %.

You also can use the Display Format:Format property to get or set the format of the numeric control. Setting the format of the numeric control using the Format & Precision:Format property overwrites any formatting you set using the Format String property.

This property is similar to the Format string option on the Display Format page of the Properties dialog box. Access the Format string option by selecting the Advanced editing mode option on the Display Format page of the Properties dialog box.

R/W X

Methods

No Methods for this class.

Events

No Events for this class.

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also