VirtualArray.ToStringArray(String) Method

Top 

Description

Returns a copy of the Array in the form of a StringArray. This is equivalent to creating a StringArray consisting of each element of the called Array using the ToString() method, with the format argument specifying how the numeric value should be formatted.

 

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

VirtualArray.ToStringArray(

String format)

 

 

Arguments

format


Description:

Format specifier to use when converting the calling VirtualArray into a String. The format specifiers are standard C/C++ specifiers as used with the sprintf function.

 

 

 

Return Value

Type:

Array of string

 

 

Returns a StringArray object that contains the values of the Array as Strings.

 

Syntax

myStringArray1 = {1,2,3,4}.ToStringArray(myString1);

 

 

See also

VirtualArray Object

VirtualArray.ToStringArray