[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: Homeseer script question?
- To: ukha_d@xxxxxxx
- Subject: Re: Homeseer script question?
- From: "Paul Gordon" <paul_gordon@xxxxxxx>
- Date: Wed, 27 Jun 2001 15:17:22 +0100
- Delivered-to: rich@xxxxxxx
- Delivered-to: mailing list ukha_d@xxxxxxx
- Mailing-list: list ukha_d@xxxxxxx; contact
ukha_d-owner@xxxxxxx
- Reply-to: ukha_d@xxxxxxx
OK - looks like I answered my own question...
I was actually creating the variable in a VB app external to Homeseer,
using
the Homeseer COM Interface. It looks like this was the cause, - it seems
that because I created it in this way, it's scope was not included in the
homeseer application's scope (or something) - which makes it a little odd
that when I did a hs.savevar in my 2nd script, I did NOT get any error...
Anyway, I have moved it out of the external VB app, and into the startup
script, and it all seems to work as expected now...
Paul G.
>From: "Paul Gordon" <paul_gordon@xxxxxxx>
>Reply-To: ukha_d@xxxxxxx
>To: ukha_d@xxxxxxx
>Subject: [ukha_d] Homeseer script question?
>Date: Wed, 27 Jun 2001 14:28:40 +0100
>
>Hope some of you Homeseer / VBscript bods can help me out here...
>
>I'm trying to use a global variable for inter-script communication
between
>a
>related set of scripts, and while I'm not getting any errors, I'm also
not
>getting any values into/out of the variable!
>
>I create the variable in the Homeseer Startup.txt startup script with:
>s=hs.createvar("wc_internal")
>
>This appears to work OK, - IE returns a null string as the value of
"s"
>
>I then have another script, that sets the value of this variable with:
>s=hs.savevar("wc_internal", "XXXXXX") - where
XXXXXX is any string.
>
>Again, this appears to work OK, in that it returns a null string as the
>value of "s"
>
>finally, I have a third script which checks the value of the variable
with:
>s=hs.getvar("wc_internal")
>
>But in this instance I am ALWAYS getting an empty string as the result,
- I
>surely should get the string value I assigned above!?
>
>Am I missing something fundamental here? - global variables, once
created
>should be remain instantiated for the lifetime of the Homeseer
application
>right? - and should be available to all scripts, right?
>
>Someone want to tell me something that makes me say "DOH!"
??
>
>Cheers,
>
>Paul G.
>
>
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
____________________________________
Automated Home UK
http://www.automatedhome.co.uk
____________________________________
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Home |
Main Index |
Thread Index
|