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