X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: kenny b on October 19, 2005, 06:59:18 PM

Title: queryplc
Post by: kenny b on October 19, 2005, 06:59:18 PM
I'm trying to retrieve the value returned
by queryplc in ASP. I've tried

retval =
ActiveHome1.SendAction "queryplc", "B1 on"

and get an error "Object Required." Any
suggestions?
Title: Re: queryplc
Post by: roger1818 on October 20, 2005, 03:30:20 PM
Kenny:  I am not sure about your problem, but
even if you did overcome the error message,
the querryplc command hasn't worked for about
6 months (it always returns the same status).
Title: Re: queryplc
Post by: john t. on October 21, 2005, 03:50:15 PM
Kenny,

You have to first create an ActiveHome
object. If you haven't done that, you'd get
the error. Also, I don't know what SendAction
method return (if anything).

John
Title: Re: queryplc
Post by: nuwan waas on October 24, 2005, 07:12:03 PM
Send Action Does not return any parameters
as far as I know. you can use it with the
activehome object as a method.
Title: Re: queryplc
Post by: -Bill- (of wgjohns.com) on November 17, 2005, 12:45:25 AM
Kenny B,

I may be wrong, but don't you need
parentheses around the parameter string?

Like:
ActiveHome1.SendAction(queryplc", "B1 on")

I know MS JSCRIPT does.

-Bill-
Title: Re: queryplc
Post by: john t. on November 17, 2005, 11:50:30 AM
I beleive Bill is correct about the ()
being required.
Title: Re: queryplc
Post by: mike roth on November 24, 2005, 01:50:05 AM
It returns a VOID or nothing so to speak,

- Mike
Title: Re: queryplc
Post by: nuwan waas on November 25, 2005, 11:02:29 AM
I dont know about other scripting methods
But If any one of yall willing to use ASP
as the serverside VB scripting, U must user
parenthesis... And sendAction does not
return any parameters. It will only send
parameters to the SendAction Function
defined in ahscript.dll
Title: Re: queryplc
Post by: mike roth on November 25, 2005, 07:12:30 PM
thats not true it returns a object value back
from the caller in the COM library. The value
means nothing becuase these docs are really
really sketchy, the technical documentation
on the FTP site it much better. But it does
return a object. And methods dont return
parameters, they return objects, strings, a
number, true/false and void/nothing. And it
could return a value since its always 0 or -1.

- Mike