Please login or register.

Login with username, password and session length

Author Topic: queryplc  (Read 14136 times)

kenny b

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
queryplc
« 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?
Logged

roger1818

  • Hero Member
  • *****
  • Helpful Post Rating: 28
  • Posts: 1072
  • Roger H.
Re: queryplc
« Reply #1 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).
Logged

john t.

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 27
Re: queryplc
« Reply #2 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
Logged

nuwan waas

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 9
Re: queryplc
« Reply #3 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.
Logged

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: queryplc
« Reply #4 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-
Logged
-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.

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 27
Re: queryplc
« Reply #5 on: November 17, 2005, 11:50:30 AM »

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

mike roth

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 4
Re: queryplc
« Reply #6 on: November 24, 2005, 01:50:05 AM »

It returns a VOID or nothing so to speak,

- Mike
Logged

nuwan waas

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 9
Re: queryplc
« Reply #7 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
Logged

mike roth

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 4
Re: queryplc
« Reply #8 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
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.