On Fri, Apr 08, 2005 at 08:11:58AM +0100, Ben Cook wrote:
> What I now wish to do is reference the "keys" parameter in a script.
>
> E.g.:
>
> if lcase(xpl.getparam(XplMsg,"keys",true)) = "NUM1OFF" Then
>
> This does not appear to work. If I replace NUM1OFF with the HEX code,
>
> i.e.:
>
> if lcase(xpl.getparam(XplMsg,"keys",true)) = "7689f00f " Then
>
> It _does_ work. I am certain that there is something I have to do to be able
> to use the nice name rather than the HEX, but I cannot remember, or find
> what it is. Can anyone clear this up for me?
Hi Ben/John,
I have no experience with XPLHal, but it looks like you are comparing
a lowercased version of the "keys" parameter with a string that is
all uppercase. That would always fail. Try removing the lcase
call or lowercasing the NUM1OFF string.
E.g.:
if lcase(xpl.getparam(XplMsg,"keys",true)) = "num1off" Then
Hope this helps.
Robbert.
--
Robbert Heederik Universiteit van Amsterdam, Faculteit der
Natuurwetenschappen, Wiskunde en Informatica
"Who are the
brain police?" - FZ <URL:http://www.science.uva.nl/~robbert/>
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss