Strcomp (string1, string2), Trim (sourcestring), Uppercase (sourcestring) – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 405

Section 11. String Functions
StrComp (String1, String2)
The StrComp function is used to compare two strings by subtracting the
characters in one string from the characters in another.
Syntax
Variable = StrComp ( String1, String2 )
Remarks
The StrComp instruction is typically used to determine if two strings are
identical. Starting with the first character in each string, the characters in
String2 are subtracted from the characters in String1 until the difference is
non-zero or until the end of String2 is reached. The result of this instruction is
an integer in the range of -255 to +255. If 0 is returned, the strings are
identical.
Trim (SourceString)
The Trim function returns a copy of a string with no leading or trailing spaces.
Syntax
Variable = Trim( SourceString )
Remarks
The SourceString parameter is the string that should be stripped of trailing
spaces.
To trim leading spaces only, use LTrim. To trim trailing spaces, use RTrim.
UpperCase (SourceString)
The UpperCase function returns an upper case string of SourceString
Syntax
Variable = UpperCase( SourceString )
Remarks
String functions are case sensitive. UpperCase or LowerCase can be used ot
convert a string to all one case.
11-9