Contents AVEVA™ InTouch HMI formerly Wonderware Scripting and Logic Guide
Changing Case of Strings .................................................................................................. 73
StringLower() Function................................................................................................. 74
StringUpper() Function................................................................................................. 74
Removing Spaces from Strings .......................................................................................... 74
StringTrim() Function ................................................................................................... 74
Formatting Strings with Spaces .......................................................................................... 75
Converting Between Characters and ASCII Codes .............................................................. 75
StringChar() Function .................................................................................................. 75
StringASCII() Function ................................................................................................. 76
Searching and Replacing Text in Strings............................................................................. 76
StringInString() Function .............................................................................................. 76
StringReplace() Function ............................................................................................. 77
Returning Information about Strings ................................................................................... 78
StringLen() Function .................................................................................................... 78
StringTest() Function ................................................................................................... 78
Comparing Strings............................................................................................................. 79
StringCompare() Function ............................................................................................ 79
StringCompareNoCase() Function ................................................................................ 80
StringCompareEncrypted() Function ............................................................................. 80
Converting Data Types ............................................................................................................ 81
Text() Function.................................................................................................................. 81
StringFromIntg() Function .................................................................................................. 82
StringFromReal() Function ................................................................................................. 82
StringToIntg() Function ...................................................................................................... 83
StringToReal() Function..................................................................................................... 83
DText() Function ............................................................................................................... 84
Working with InTouch Windows at Run Time ............................................................................ 85
Expose Window Name Property ......................................................................................... 85
GetWindowName() Function ........................................................................................ 85
Showing a List of Open Windows ....................................................................................... 86
OpenWindowList() Function ......................................................................................... 86
Checking If a Window is Open, Closed, or Exists................................................................. 86
WindowState() Function ............................................................................................... 86
Opening InTouch Windows ................................................................................................ 87
Show() Function .......................................................................................................... 87
ShowAt() Function ....................................................................................................... 87
ShowHome() Function ................................................................................................. 88
ShowTopLeftAt() Function............................................................................................ 88
Moving and Resizing a Window.......................................................................................... 88
WWMoveWindow() Function ........................................................................................ 88
Hiding InTouch Windows ................................................................................................... 89
Hide() Function............................................................................................................ 89
HideSelf() Function ...................................................................................................... 89
Changing the Color of a Window ........................................................................................ 90
ChangeWindowColor() Function ................................................................................... 90
Printing Windows at Run Time ........................................................................................... 90
SetWindowPrinter() Function........................................................................................ 90
Recommendations for Printing...................................................................................... 91
PrintWindow() Function................................................................................................ 91
PrintScreen() Function ................................................................................................. 92
PrintHT() Function ....................................................................................................... 93
Starting Tag Viewer ........................................................................................................... 93