All Properties
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 language="VBScript">
WScript.Echo getResource("weekday0")
WScript.Echo getResource("pi")
</script>
</job>
</package>
Output:
Sunday
3.14159
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information