5 string comparison operators, 2 string manipulation functions, Ascii(ascii_string(1,1,position)) – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 398: Syntax

Section 11. String Functions
Example: Tag an ID onto the end of a list of names:
Dim ID AS long
Public Names(10) AS STRING * 8
For ID = 1 to 10
Names(ID) = “ITEM”+ID
Next ID
The array of Names(10) becomes “ITEM1”, “ITEM2”,…,”ITEM10”
11.1.5 String Comparison Operators
The comparison operators =, >,<,<>, >= and <= operate on strings. The
equality operators perform the string subtraction operation noted above and
apply the appropriate rule to return either TRUE or FALSE.
Example: Find the name “Mike” in the array of Names
For ID = 1 to 10
If Names(ID) = “Mike”
….
11.1.6 Sample () Type Conversions and other Output
Processing Instructions
The Sample() instruction will do the necessary conversion if the source data
type is different than the Sample() data type. The conversion of floats and
longs to strings will allocate 12 bytes per field to hold the string.
Strings are disallowed in all output processing instructions except Sample().
11.2 String Manipulation Functions
ASCII(ASCII_String(1,1,Position))
The ASCII function is used to return the ASCII value of a character in a
string.
Syntax
Variable = ASCII(ASCIIString (1,1,Position)
Variables that are declared as strings can have only two dimensions. If a third
dimension is used for a string, it represents the character within the string.
Therefore, in the above syntax example, Position is a value that represents the
position of the character in the string that you want returned. If your string is
ABCDEFG and you want the ASCII value returned of D, you would use the
number 4 for “Position” to return that value.
11-2