I still can not get the arrays to work. Look at my program to see what I am doing wrong I haven't tried the other suggestions yet but I will get started on those as soon as i figure out the arrays.
I still can not get the arrays to work. Look at my program to see what I am doing wrong I haven't tried the other suggestions yet but I will get started on those as soon as i figure out the arrays.
In the program when i do
lcdout #key it shoots out the key correctly on the lcd however
when i use
htxt(x) = #key
it says bad expression when i try to compile
also when i use
htxt(x) = key
it works fine however it displays a blank spot on the lcd
htxt(x) = key ------>>>>> lookup key , [ "0123456789ABCDEF" ] , htxt[x]
^get rid of^---------------^^^^^^ replace with ^^^^^^^^^^^
Your turn to figure out why assigning the variable 'key' to htxt(x) and trying to get the LCD to display what is effectively variable 'key' doesn't work.
What is the ASCII character equivalent to 'key', if 'key' = 1? if 'key' = 2? if 'key' = 65?
Last edited by skimask; - 3rd July 2007 at 02:08.
i see ill try thank you for the reply. If you don't mind could you give me an example of that a very simple version of it that I could run with. Im sorry for being so ignorant but arrays is brand spanking new to me.
I can do that quite effectively ahaha its this damn blasted arrays thats slowing me down I have entire codes already done for that portion its just that I want to be able to loop the message over and over but I need arrays to do that and the message is not predetermined it will be different depending on the user.Your turn to figure out why assigning the variable 'key' to htxt(x) and trying to get the LCD to display what is effectively variable 'key' doesn't work.
What is the ASCII character equivalent to 'key', if 'key' = 1? if 'key' = 2? if 'key' = 65?
Last edited by MrSafe; - 3rd July 2007 at 02:14.
The code below will compile all I did different from the code on the bottom is change the htxt[x] to x
alpha1:
gosub getkey
LOOKUP key,[" ABCDEFGHIJ"],x
htxt[x] = htxt[x] + 1
RETURN
The code above will not compile the compiler gives me the fallowing erroralpha2:
gosub getkey
LOOKUP key,[" KLMNOPQRST"],htxt[X]
htxt[x] = htxt[x] + 1
RETURN
"output parameter must be a variable"
Bookmarks