KB-25562: Adding a new line to texts via scripts.
Question: In a script for sending e-mails, how can I insert new text lines in the body text? Solution: To do so, you must concatenate it to Chr(10) and Chr(13)…
Question: In a script for sending e-mails, how can I insert new text lines in the body text? Solution: To do so, you must concatenate it to Chr(10) and Chr(13)…
Question: How can I retrieve the number of characters in a string? Solution: To do so, use VBScript’s Len function. Sample script to be executed at a button’s Click event:…
Question: How can I convert an integer into a string? Solution: To do so, use VBSscript’s CStr command. For example: CStr(15).
Question: Can objects from two different screens be linked to one another? Solution: No, they can’t. If it is really necessary to link these objects, you can add internal tags…
Question: Which method should I use to open a Windows screen asking in which folder the user wishes to save a certain file, or in which folder the file is?…
Question: Is there a function similar to SCADA’s StrZero in VBScript? Solution: No, there is no such function in VBScript. However, this could be worked around with this script: Dim…
Question: How can I convert HIMETRIC into PIXEL when I can’t access the corresponding function in E3? Solution: The formula is: HIMETRIC = (PIXEL * 2540) / 96 Then, all…
Question: How can I activate Windows Script Debugger? Solution: Scripts can be debugged in E3 either in the server or in the Viewer. To do so, you must install the…
Question: How can I set Windows’ clock via E3 scripts? Solution: To do so, use DATE and TIME commands via DOS command line. It can be inserted in a script…
Question: I use WriteEx() method to command a remote device’s output. Some of these commands return errors, but the driver’s log indicates this method is working properly. How can I…