Shop OBEX P1 Docs P2 Docs Learn Events
LOOKUP expressions for PBASIC is not available in LOOKUP for SX/B ? — Parallax Forums

LOOKUP expressions for PBASIC is not available in LOOKUP for SX/B ?

T&E EngineerT&E Engineer Posts: 1,396
edited 2007-04-20 16:36 in General Discussion
I have a working PBASIC Lookup command:

LOOKUP char,[noparse][[/noparse]Char_B,Char_S,Char_2,Char_Space],eeAddr1

and the Char_B (and other expressions(?)) references a DATA statement

:
:
Char_B···DATA·· %00000000
··········· DATA·· %00000000
··········· DATA·· %01111111····· ' xxxxxxx
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %00110110····· ' .xx.xx.
··········· DATA·· %00000000
··········· DATA·· 0

Is it possible to convert this PBASIC LOOKUP statement into a SX/B LOOKUP statement (or will an elaborate routine need to be written)?


SX/B statement....

LOOKUP char,Char_B,Char_S,Char_2,Char_Space,eeAddr2

:
:
Char_B:····
··········· DATA·· %00000000
··········· DATA·· %00000000
··········· DATA·· %01111111····· ' xxxxxxx
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %01001001····· ' x..x..x
··········· DATA·· %00110110····· ' .xx.xx.
··········· DATA·· %00000000
··········· DATA·· 0

I get an error....INVALID PARAMETER "Char_B"

Bean? Somebody?

Thanks.

Comments

Sign In or Register to comment.