Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











Method:  getResource

getResource(strResourceID)

The getResource method is used to retrieve data declared as <resource> elements.

The following sample code illustrates the use of the getResource method in conjunction with resource tags.

<?XML version="1.0" ?>
<!-- Filename: demo.wsf-->
<package>
  <job>
    <resource id="weekday0">Sunday</resource>
    <resource id="pi">3.14159</resource>

    <script type="text/vbscript">
      WScript.Echo getResource("weekday0")
      WScript.Echo getResource("pi")
    </script>
  </job>
</package>


Output:
Sunday
3.14159

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information