Re: Extracting data from an XML to put into a constant
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Tue, 25 Mar 2008 13:13:07 -0400
mr_unreliable wrote:
Bob Barrows [MVP] wrote:Interesting, but I don't understand the relevance. You don't seem to be
Well, you cannot set a contant's value at runtime: constants can
only be set at compile time,
If one is willing to use the "wsf" construct, then one may
access the constants in an object's typelib by using the
"reference tag".
Here is an example:
--- <code> ---
<job>
<reference object="Excel.***.8" />
<script language="VBScript">
MsgBox("test XL ref. xlTextFormat = " & CStr(xlTextFormat))
</script>
</job>
--- </code> ---
Copy out the code into a file, and name it "testXLConstant.wsf".
talking about setting a constant's value at runtime.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Follow-Ups:
- Re: Extracting data from an XML to put into a constant
- From: Paul Randall
- Re: Extracting data from an XML to put into a constant
- References:
- Extracting data from an XML to put into a constant
- From: wills.jason@xxxxxxxxx
- Re: Extracting data from an XML to put into a constant
- From: Bob Barrows [MVP]
- Re: Extracting data from an XML to put into a constant
- From: mr_unreliable
- Extracting data from an XML to put into a constant
- Prev by Date: Re: Extracting data from an XML to put into a constant
- Next by Date: Object not a collection error.
- Previous by thread: Re: Extracting data from an XML to put into a constant
- Next by thread: Re: Extracting data from an XML to put into a constant
- Index(es):