Functions > Text


The following fucntions were added to v.1.0.1.4. These are not available in older versions:

01. strings 02. addstrings  03. insertstrings 04. stringat
05. removestrings 06. removestringsat 07. combinestrings 08. countstrings

strings

Creates an new object of type "StringArray", which can be used to store arrays of textual data. You can provide parameters to store initial string data to the object.

>> a = strings()
>> b = strings(blue, red, green)

addstrings

Add one or more strings to an existing object of type String Array created using the strings() function.

insertstrings

Insert one or more strings to an existing object of type Strign Array at the specified index.

>> a = strings(blue, red, green)
>> insertstrings(a, 1, blue, red, green)

stringat

Returns the string value at the specified index in the given String Array.

>> a = strings(blue, red, green)
>> insertstrings(a, 1, blue, red, green)

removestrings

Removes the first occurance of given strings from the String Array. If a value is not found, it is ignored. The number of actual values removed is returned to the caller.

>> a = strings(blue, red, green)
>> removestrings(a, green)

removestringsat

Removes strings from an object of type String Array at the given indexes.The second parameters must be a single numeric value or an array of numeric values.

>> a = strings(blue, red, green)
>> removestringsat(a, array(0, 2))

combinestrings

Returns a single Text object created by combing all strings in the String Array object. By default, the values are separated by a comma. You can override the separator by providing your own separator as second parameter.

>> a = strings(blue, red, green)
>> combinestrings(a)

>> blue,red,green
>> combinestrings(a, ", ")
>> blue, red, green
>> combinestrings(a, "-")
>> blue-red-green

countstrings

Retruns the number of strings in the String object.

>> a = strings(blue, red, green)
>> countstrings(a)

>> 3.0000
>> removestrings(a, red, green);
>> countstrings(a)
>> 1.0000

 

Donate Bitcoin

1AvM287k9ocUbqp6SPhGLzyGqFx3JZFcSA

 

Your donations will help keep this free service running.

 

Navigation