
Anonymous user
Not applicable
2021-06-09
05:03 PM
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
2021-06-09
05:03 PM
Adding New Line Characters To Strings in Logic
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 10, 2021 02:03 AM
📖 Home Back
Occasionally it is a requirement that a new line character is put in ClearSCADA where it expecting a string, eg. a STRING variable in logic or the TooltipText animation on a mimic.
Depending on where the string is being written to in ClearSCADA, different formats are used.
Logic uses $n to indicate a new line, for example:
If you view the value of the string variable afterwards you will see some squares where the $n are in the logic code, and when displayed on a mimic it will show each word on a new line.
Also see Adding New Line Characters To Strings on Mimics.
Go: Home Back
Occasionally it is a requirement that a new line character is put in ClearSCADA where it expecting a string, eg. a STRING variable in logic or the TooltipText animation on a mimic.
Depending on where the string is being written to in ClearSCADA, different formats are used.
Logic uses $n to indicate a new line, for example:
PROGRAM NewLineTestVAR TestString AT %M(.Str.Value) : STRING;END_VAR TestString := 'This$nis$na$ntest';END_PROGRAM
If you view the value of the string variable afterwards you will see some squares where the $n are in the logic code, and when displayed on a mimic it will show each word on a new line.
Also see Adding New Line Characters To Strings on Mimics.
Go: Home Back
Author
Link copied. Please paste this link to share this article on your social media post.