Applies To:
  • CitectSCADA

How do you reverse the order of the characters in a string? 

The attached Cicode function returns a string in which the character order of the specified string is reversed. It uses the StrGetChar() and StrSetChar() functions to read and write characters efficiently. However they only work for the first 128 characters of a string. Longer strings are handled with the slower StrMid() function and string concatenation.