11.07.2015 Views

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

VBScript Reference Manual for InduSoft Web Studio - ICP DAS

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong>Notwithstanding these restrictions, <strong>VBScript</strong> code within theActiveX Event interface still has access to all GlobalProcedures, as well as any procedures in the Screen Script<strong>for</strong> the same Screen where the ActiveX object is configured.<strong>VBScript</strong> code within the ActiveX Event interface is executed whenever one or more of the selectedEvent conditions (listed in the Configuration dialog box) occur <strong>for</strong> the selected ActiveX object. Theexecution of the script on the Server executes independently from the execution on <strong>Web</strong> Thin Clients.Key Notes:• Be<strong>for</strong>e executing the application, be sure to save (or close) the Screenafter any <strong>VBScript</strong> is entered. Otherwise it might not be updated. This istrue <strong>for</strong> all <strong>VBScript</strong> interfaces.Background Task Startup ScriptIn the Tasks Worksheet folder is the Script subfolder whichwill contain a default Startup Script icon and anyBackground Task Script Groups declared. To edit theBackground Task Startup Script:1. Click on the Tasks Worksheet folder2. Click on the Script subfolder.Any <strong>VBScript</strong> code placed in this interface will execute whenthe Background Task module is started, which occurs whenthe IWS application is started. This code will only executeonce, and is meant <strong>for</strong> initialization purposes.Variables and Procedures declared in the Background TaskStartup Script are available to the Background Task Script Group, but are not available to any <strong>VBScript</strong>interfaces in the Graphic Module. Remember that the Background Task Group Startup Script canaccess the procedures declared in Global Procedures.Since the Background Task Startup Script has no interaction with a Graphics script, the only Serverdisplay I/O functions that can be implemented are MsgBox and InputBox functions.Since the Background Task Startup Script runs on the IWS Server, there is no effect with <strong>Web</strong> ThinClients.Background Task Script GroupsThe Background Task Script Groups consist of one or more <strong>VBScript</strong> interface groups that run in theBackground Task. By default, there are no Background Task Script Groups unless added by thedeveloper. These Script Groups will execute in a background as long as their Execution Field is in aTRUE state.Background Task Script Groups have the following limitations:<strong>InduSoft</strong>, Ltd. 51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!