ArrayFromStr

Accepts a text string and returns a one dimension array with one string character per array element..

Syntax:

ArrayFromStr( string )

Parameters:

(s) string: string of characters to convert to an array.

Returns:

(a) array: a one dimensional array.

 

This function takes a string and creates a one-dimension array with the same number of elements as the number of characters in the string.

 

Example:
 
strName = AskLine( 'ArrayFromStr', 'Please type in your name', 'Joe Blow' ) arrName = ArrayFromStr( strName ) count = ArrInfo(arrName, 1 ) Pause( 'Your Name: ' : strName, 'Has ': count : ' characters in it.') Exit
 
See Also:

Arrays, Arrays, ArrayFileGet, ArrayFileGetCsv, ArrayFilePut, ArrayFilePutCsv, ArrayFromStr, ArrayInsert,  ArrayItemize, Arrayize, ArrayLocate, ArrayRedim, ArrayRemove, ArrayReverse, ArraySort, ArraySwapElements, ArrayToStr, ArrDimension, ArrInfo, ArrInitalize, Drop