Hi folks,
I've been trying to write some simple scripts to get started, by using VB6 for its editor and debugger. I started with an empty VB exe project, and added a reference to the HomeSeer ActiveX object. For testing within the VB environment, I'm using:
Dim hs As HomeSeer.Application
sub main()
Set hs = New HomeSeer.Application
...
I can call most HomeSeer methods fine, but the following doesn't seem to work. Assuming that a global variable named "bogus" doesn't exist, if I run the following:
Status = hs.SaveVar("bogus", 23)
the value of Status is an empty string which, according to the HS docs I have, means everything went well. It shouldn't have, since "bogus" doesn't exist. If I move that same line into a script run directly from HomeSeer, the value of Status is "Name not found", which is what I would suspect.
Any ideas? Thanks.
I've been trying to write some simple scripts to get started, by using VB6 for its editor and debugger. I started with an empty VB exe project, and added a reference to the HomeSeer ActiveX object. For testing within the VB environment, I'm using:
Dim hs As HomeSeer.Application
sub main()
Set hs = New HomeSeer.Application
...
I can call most HomeSeer methods fine, but the following doesn't seem to work. Assuming that a global variable named "bogus" doesn't exist, if I run the following:
Status = hs.SaveVar("bogus", 23)
the value of Status is an empty string which, according to the HS docs I have, means everything went well. It shouldn't have, since "bogus" doesn't exist. If I move that same line into a script run directly from HomeSeer, the value of Status is "Name not found", which is what I would suspect.
Any ideas? Thanks.
Comment