Descrição: Tenho dois drivers DNP Slave mandando dados para dois IPs diferentes: um deles faz a leitura de dados, e o outro é apenas backup. Quando o canal de comunicação…
Descrição: Como abrir uma tela janelada sem impedir a utilização da tela anterior? Solução: No evento desejado, selecione o pick Abrir Tela. Na configuração do pick, informe um nome de…
Descrição: Como posso configurar um E2Button para que ele utilize bitmaps como fundo do botão? Solução: Para isto, siga estes procedimentos: Inclua os dois bitmaps (pressionado e não pressionado) no…
Question: How can I check, at runtime, whether an object’s Value property is already linked? Solution: To do so, use a script that is similar to the one in the…
Question: How can I synchronize the PLC’s date/time with the computer’s date/time (BIOS)? Solution: To do so, use this script: dim oShellSet oShell = CreateObject(“WSCript.shell”)oShell.run “cmd /K DATE “& Application.GetObject(“Dados.Data”).Value,0…
Descrição: Como fechar o Keypad quando o botão Enter for pressionado? Solução: Uma possibilidade é criar um script na tela desejada, no evento OnKeyPress, e selecionar a tecla ENTER (Return).…
Question: How can I open a pop-up window from another pop-up window, closing the first window in the process? Solution: To close the first pop-up window, follow these procedures: Create…
Question: How can I create a pulse button that asks whether the user wants to confirm the command? Solution: This can be done with Click event. When clicking the button,…
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:…