KB-41359: Special characters in the setpoint.
Question: How can I keep the user from typing special characters in a setpoint ? Solution: To do so, you must add the following script to Setpoint’s Validate event: N…
Question: How can I keep the user from typing special characters in a setpoint ? Solution: To do so, you must add the following script to Setpoint’s Validate event: N…
Question: When there is no communication with the device, why does WriteEx() method not return script errors, unlike a regular write on tag, which always returns this type of error?…
Question: How can I create a digital link via scripts? Solution: Example: set bind = Screen.Item(“Text1”).Links.CreateLink(“Value”, “Data.Tag1.Value”, 3) bind.OnValue = “Text ON” bind.OffValue = “Text OFF”
Autor
Mateus Machado
Question: Is there a command to open windows that is similar to MsgBox, but with a field for typing text? Solution: Yes, this is what VBScript’s InputBox is for. Script…
Question: Is there a manual with scripts examples and explanations about the VBScript’s properties, methods and parameters? Solution: You can use E3’s Scripts Reference Manual and the VBScript Reference Guide.
Question: How can I work with a function in E3 scripts? Solution: To do so, you must set the function with the structure: Function Name(parameter1, parameter2,.., parameterN) scriptEnd function Example: Sub…
Question: On Windows 2003 Server SP2, when executing scripts that work with Double data, a script error occurs with an Overflow message. How can I fix the problem?Solution: To do…
Question: How can I use the “ElseIf” clause in a script? Solution: To do so, just insert it into an “If”‘s loop. For example: If condition == “value”ActionElseIf condition2 ==…
Question:Can I extract a ZIP file via scripts? Solution: Yes, you can. For example: ‘ZIP file to be extracted:pathToZipFile=”C:\Folder1\MyZIPfile.zip” ‘Folder of destination:extractTo=”C:\Folder2\”‘Tests if the file existsset fso2 = CreateObject(“Scripting.FileSystemObject”)if fso2.FileExists(pathToZipFile)…