KB-29996: Using WriteToFile() command to write on a new line.
Question: On an application, WriteToFile() command is being used to write values in a TXT file, but it is not writing in a new line. How can I fix the…
Question: On an application, WriteToFile() command is being used to write values in a TXT file, but it is not writing in a new line. How can I fix the…
Question: How can I break a line on a MessageBox? Solution: To do so, you must write a script using the Chr() function. For example: MessageBox(“phrase line 1″+Chr(13)+Chr(10)+”phrase line 2”…
Question: How can I read a one-line TXT file with a number in it? Solution: To do so, you must use the ReadFromFile() method. For example: dim var, tst var…
Question: Can I execute an Excel macro via Elipse SCADA? Solution: Yes, you can. To do so, you must use DDEExecute (server, topic, command) function, where: server: name of the…
Question: Why is the Logout() function in a script not closing the application? Solution: This function does not close the application; it just logs the current user out. To close…
Question: There is a script in the application using UserAdministration() function, but when the function is executed nothing happens. Why is this happening? Solution: This function is only executed if…
Question: How can I request the user to confirm before writing on a tag? Solution: To do so, you must use MessageBox() function. Then, depending on the answer returned by…
Question: How can I convert a number into string? Solution: To do so, use the Global Manager’s Str() function. Example of script: // Str(Value,size,prec)TagReceiveValue = Str(30.95,6,2)
Question: How can I remove blank spaces from a variable? For example, the text “Elipse Software Ltd.” is in a variable, but I want to display “ElipseSoftwareLtd.” instead. Solution: To…
Question: What is the exponentiation function in Elipse SCADA ? Solution: To do so, you must use **. Example of script: // tag001 squared tag001 ** 2