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: Events


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

xQL


  • Subject: xQL
  • From: frostie2001uk
  • Date: Fri, 02 Jan 2004 01:14:00 +0000

Could someone look at this sql statement for xql and tell me if it is
allright? in the monitor it fails...

strmsg=strmsg & "sql=select * from progguide where
[channelno]='" &
xpl.getparam(xplmsg,"CHANNELNO",true) &"'"
+chr(10)

the whole script is...


Sub tonyt_dguide_guide_trigger(xplmsg)

If
ucase(xpl.getparam(xplmsg,"{SCHEMA}",true))="DGUIDE.START"
then
strmsg="command=edit" & chr(10)
strmsg=strmsg & "sql=select * from progguide where
[channelno]='" &
xpl.getparam(xplmsg,"CHANNELNO",true) &"'"
+chr(10)
strmsg=strmsg & "starttime=" & xpl.getparam
(xplmsg,"TIME",true) +chr(10)
strmsg=strmsg & "duration=" & xpl.getparam
(xplmsg,"DURATION",true) +chr(10)
strmsg=strmsg & "title=" & xpl.getparam
(xplmsg,"TITLE",true) +chr(10)
strmsg=strmsg & "category=" & xpl.getparam
(xplmsg,"CATEGORY",true) +chr(10)
strmsg=strmsg & "description=" & xpl.getparam
(xplmsg,"DESCRIPTION",true) +chr(10)

Call xpl.sendmsg("xpl-cmnd","tonyt-
xql.master","db.xql",strmsg)
end if
End Sub

It is displayed in the monitor but i don't get the end part from
xQL.. like...

xpl-stat
{
hop=1
source=tonyt-xql.master
target=xpl-xplhal.main
}
DB.XQL
{
STATUS=OK
COMMAND=EDIT
SQLID=51
}

<--from montitor-->
xpl-cmnd
{
hop=1
source=xpl-xplhal.main
target=tonyt-xql.master
}
db.xql
{
command=edit
sql=select * from [progguide] where [channelno]='621'
starttime=01:10
duration=25
title=Dragonball Z
category=Animation
description=Pathos of Frieza. Goku's power and strength appears to
increase with every blow against Frieza but he does not have much time
}






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.