Applies To:
  • CitectSCADA 7.x 

Summary:
AlmTagsOpen() cicode function doesn't work for sFilter conditions that have spaces in them e.g "High High" or "Low Low"
Example:
ISession=AlmTagsOpen("STATE=HIGH HIGH", "", "");       [this will fail]

Solution:
Term value strings with spaces must use quotes ("...") to delimit term values correctly.  To use a quote (") in a string, a caret (^) to indicate that the quote is to be included in the string rather than end the string.
See also "caret (^) character" or "Using the Caret Escape Sequence Character" in cicode help.
Example:


ISession=AlmTagsOpen("STATE=^"HIGH HIGH^"", "", "");

The filters can be complex expressions (multi-term) and a space in an expression signals the end of one term and the beginning of another.
e.g.
"STATE=^"HIGH HIGH^" OR STATE=^"LOW LOW^""
Term1=STATE="HIGH HIGH"
Term2=STATE="LOW LOW"

Keywords:
AlmTagsOpen, High High, Low Low, state, filter, caret, escape

Attachments