queryplc

Started by kenny b, October 19, 2005, 06:59:18 PM

Previous topic - Next topic

kenny b

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?

roger1818

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).

john t.

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

nuwan waas

Send Action Does not return any parameters
as far as I know. you can use it with the
activehome object as a method.

-Bill- (of wgjohns.com)

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-
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

john t.

I beleive Bill is correct about the ()
being required.

mike roth

It returns a VOID or nothing so to speak,

- Mike

nuwan waas

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

mike roth

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