The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: xPL Monitor


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Making Progress


  • Subject: RE: Making Progress
  • From: "Tony Tofts" <tony@xxxxxxxxxx>
  • Date: Wed, 1 Dec 2004 18:34:39 -0000


Hi Paul,

> So the two parts I'm stuck on is how do I get a global in to
> a script and how do I get a global set from an incoming message.

Assuming were talking xplhal vb scripts here then:

To set a variable use sys.value("myvariablename")=value

Or to use a variable then myvar=sys.value("myvariablename")

To get at a value in a message it's:

phoneno=xpl.getparam(xplmessage,"Phone",true)

The first param is a variable holding the xpl message, 2nd is the name in a
name/value pair, 3rd param speicifes whether to trim leading/trailing
spaces

HTH

Regards
Tony



>
>
> Regards,
>
> Paul
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> Make a clean sweep of pop-up ads.
> Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/h6uqlB/TM
> --------------------------------------------------------------
> ------~->
>
> xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
> http://www.xpl.myby.co.uk To
Post a Message:
> ukha_xpl@xxxxxxx To Subscribe:
> ukha_xpl-subscribe@xxxxxxx
> To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx
> Yahoo! Groups Links
>
>
>
>
>
>
>




xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.