X10 Community Forum
🖥️ActiveHome Pro => SDK => Topic started 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?
-
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).
-
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
-
Send Action Does not return any parameters
as far as I know. you can use it with the
activehome object as a method.
-
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-
-
I beleive Bill is correct about the ()
being required.
-
It returns a VOID or nothing so to speak,
- Mike
-
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
-
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