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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>InduSoft</strong> <strong>Web</strong> <strong>Studio</strong><strong>VBScript</strong> <strong>Reference</strong> <strong>Manual</strong><strong>VBScript</strong> Object Commands<strong>VBScript</strong> includes several Functions and Statements that can be used to access objects, including theirmethods and properties. There are a large variety of objects available to VBSript, including userdefinedobjects, intrinsic objects and extrinsic objects.<strong>VBScript</strong> Object FunctionsFunctionDescriptionCreateObject Creates and returns a reference to an Automation objectGetObject Returns a reference to an Automation object from a fileIsObjectReturns a Boolean value indicating whether an expression references a valid Automationobject.Object StatementsStatementClassExit PropertyFor Each…NextProperty GetProperty LetProperty SetSetDescriptionDeclares the name of a class, as well as a definition of the variables, properties, andmethods that comprise the classForces an exit from inside a Property Set function.Repeats a group of statements <strong>for</strong> each element in an array or a collection.Declares, in a Class block, the name, arguments, and code that <strong>for</strong>m the body of a Propertyprocedure that gets (returns) the value of a propertyDeclares, in a Class block, the name, arguments, and code that <strong>for</strong>m the body of a Propertyprocedure that assigns (sets) the value of a propertySets a reference to an objectAssigns an object reference to a variable or property, or associates a procedure referencewith an event. Usually used to instantiate an object.Error Handling StatementsStatementDescriptionOn ErrorEnables or disables error-handlingObject & Collection SummaryObjects & Collections DescriptionDebugThe Debug object is an intrinsic global object that can send an output to a scriptdebugger, such as the Microsoft Script Debugger.DictionaryAn associative array that can store any type of data. Data is accessed by a key.DriveAn object that refers to a specific DriveDrivesA collection of Drive objects.ErrContains in<strong>for</strong>mation about the last run-time error. Accepts the Raise and Clearmethods <strong>for</strong> generating and clearing run-time errors.FileAn object that refers to a specific FileFilesA collection of File objects.FileSystemObjectAn object model used to access the Windows file systemFolderAn object that refers to a specific FolderFoldersA collection of Folder objects.MatchProvides access to the read-only properties of a regular expression match.MatchesCollection of regular expression Match objects.RegExpProvides simple regular expression support.SubmatchesA collection of regular expression submatch strings.TextStreamAn object that refers to a text File<strong>InduSoft</strong>, Ltd. 23

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

Saved successfully!

Ooh no, something went wrong!