Re: How can I create a global variable?
- From: "James Whitlow" <jwhitlow@xxxxxxxxxx>
- Date: Wed, 23 Nov 2005 11:54:03 -0600
"Hartmut Callies" <Spam_callies@xxxxxx> wrote in message
news:%23$FV8t07FHA.3044@xxxxxxxxxxxxxxxxxxxxxxx
>
> Hello,
> I have two vbScripts. In a.vbs I will create a global variable glVariable
as
> String, so that
> I can read this variable in a other script (b.vbs) - msgBox glVariable.
> How can I do that?
Considering using the volatile environment. Set the variable in a.vbs like
this:
oWSH.Environment("VOLATILE")("glVariable") = "Information from script a.vbs"
Read it from b.vbs using something like this:
sVar = oWSH.Environment("VOLATILE")("glVariable")
.
- Follow-Ups:
- Re: How can I create a global variable?
- From: mayayana
- Re: How can I create a global variable?
- References:
- How can I create a global variable?
- From: Hartmut Callies
- How can I create a global variable?
- Prev by Date: Re: getting client IP address .......
- Next by Date: Re: Validate Months & Days of Week
- Previous by thread: Re: How can I create a global variable?
- Next by thread: Re: How can I create a global variable?
- Index(es):
Relevant Pages
|