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
<
All Elements
ELEMENT: <resource>
The
<resource>
tag can be used to isolate data within the script file. Data stored this way can only be retrieved via the
getResource
method.
Syntax:
<resource id="name">value</resource>
Attribute: id
The
id
attribute is used to give a unique identifier to the resource.
The following sample code illustrates the use of this tag.
<?XML version="1.0" ?>
<!-- Filename: demo.wsf-->
<package>
<job>
<resource id="weekday0">Sunday</resource>
<resource id="pi">3.14159265358979</resource>
<script type="text/vbscript">
WScript.Echo getResource("weekday0")
WScript.Echo getResource("pi")
</script>
</job>
</package>
Output:
Sunday
3.14159265358979
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information