Variable.ToString() Method

Top 

Description

Converts the value to a string representation (e.g. scientific, floating point, or integer) based on the magnitude of the value. If you require a specific format, use the Variable.ToString(String) method overload, the Format method for scientific or floating point representations, or the IFormat method for integer representations.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

Variable.ToString(

)

 

 

Return Value

Type:

string

 

 

The resulting String from the conversion.

 

Syntax

myString1 = myVariable1.ToString();

 

 

See also

Variable Object

Variable.ToString

Matrix, Array, and Variable Math Guide