i'm trying to get a constant string array to work and i'm not having much luck, i'm using it for menu items to be shown on an lcd
i have 9 items of 16 chars each declared, if i omit the '[16]' it doesn't compile.
Code: Select all
const MSG_MainPRO as String[9][16] = ("Refresh Rate","Datalog Rate","Log Mode","Save CSV File","Save BIN File","Averaging","Backlight","Datalog File","Exit")
within my code: ('Program_Value' is a byte value of the menu item i want to display)
Code: Select all
lcd_out(2,1,MSG_MainPRO[Program_Value])
it compiles but i get nothing on the display, where am i going wrong?
[i]A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. Douglas Adams.[/i]