String manipulation icon properties





The properties box of the String manipulation icon allows users to manipulation, create and edit strings in a similar manner to how the calculation icon allows users to manipulate numeric variables.


Enter the function code and string variable names into the text box to manipulate the strings.

The variables and Function buttons allow the user to add those elements into the edit box window.


Strings

Strings are arrays of BYTE ASCII character values.

String arrays are composed of the array name and an array element variable.

MyString[24] for instance is an array called MyString that is 24 characters in size.



Creating a string


Strings are created in the Variables screen along with other variables.

To create a string enter the String array name and tick the String option.

To set the array size enter the desired size inside square array brackets.

If no size is specified the string will be created with the default size of 20 characters.



Resizing the string

To resize the string open the variables window, select the string to resize and select EDIT.

Enter the new size for the array.



Note that you may need to alter your program code to accommodate the size change.


String manipulation functions

The String functions are a set of string manipulation functions that can be used to edit, change and examine the strings.

Clicking on a function adds the base code to the edit box window. The user can then edit this base code with the variables required.

See the String Manipulation Functions page for details on the available details.