Jump to content

NumericText class: Difference between revisions

From LabVIEW Wiki
mNo edit summary
m Removed VI Server Category from page
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
{{TOCright}}
{{TOCright}}


==Properties==
<!--Edit Properties, Methods, or Events in the appropriate table in one on the VI Server Templates-->
<span class="mw-customtoggle-propertiestable">Show/Hide NumericText Properties Table</span>
{{VIServerClassTables|39}}
<div class="mw-collapsible" id="mw-customcollapsible-propertiestable">
{{VIServerLegend|showrw=TRUE|showrte=TRUE}}
{| class="wikitable sortable"
|+ NumericText Properties Table
! Property ID
! Short Name (English)
! Description
! R/W
! RTE
|- style="background-color:#FFFFCC;"
|632E400
| [[NumericText class/DisplayFormat property|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 <b>Display Format</b> page of the Properties dialog box.
|R/W
|X
|- style="background-color:#FFFFCC;"
|632E401
| [[NumericText class/Format property|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 <b>Format</b> option on the <b>Display Format</b> page of the Properties dialog box.
|R/W
|X
|- style="background-color:#FFFFCC;"
|632E402
| [[NumericText class/Precision property|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 <b>Precision Type</b> option on the <b>Display Format</b> page of the Properties dialog box.
|R/W
|X
|- style="background-color:#FFFFCC;"
|632E403
| [[NumericText class/FormatString property|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 <b>Format string</b> option on the Display Format page of the Properties dialog box. Access the <b>Format string</b> option by selecting the <b>Advanced editing mode</b> option on the <b>Display Format</b> page of the <b>Properties</b> dialog box.
|R/W
|X
|}
</div>
 
==Methods==
''No Methods for this class.''
 
==Events==
''No Events for this class.''


== History ==
== History ==
Line 87: Line 24:
*[[VI Server]]
*[[VI Server]]


[[Category:VI Server]]
 
[[Category:VI Server Class]]
[[Category:VI Server Class]]

Latest revision as of 01:59, 8 May 2020

VI Server Class Information
Return to VI Server Class Hierarchy
Class Name NumericText class
Class ID 39
Scope Basic Development Environment
Class Inheritance
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 Long Name (English) Description R/W RTE
632E400Display FormatSpecifies 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.Read/WriteYes
632E401Display Format:FormatSpecifies 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.Read/WriteYes
632E402Display Format:PrecisionNumber of digits after the decimal point. If you wire a value of 9 to the Format property, this property returns an error.Read/WriteYes
632E403Format StringGets and sets the format of the numeric control.Read/WriteYes

Methods

This class has no methods or it inherits methods from its parent: Text Class.

Events

This class has no events or it inherits events from its parent: Text Class.


History

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

See Also