String Variable?

Status
Not open for further replies.

Timmymna

New Member
Is it possible to store a string in a variable or in the internal or external EEPROM in PicBasic Pro? This would be helpfull as my program is growing rather large and I am using a lot of Serout commands to an LCD, if this were possible could I use it like:

LCDsub:
Serout, porta.1.6,[#variable]
Return

Where I had previously put the string ie "Hello" into the variable?
 
I've done the same thing using C and interfacing to an LCD. I have a function called

Write_str("Hello");

and my function is this

void Write_str( Char str)
{
...code for display
}

Basicly the function is called as many times as there are letter in the string. So "Hello" would call it 5 time. one to write "H" one for "e" and so one. I don't know if this is true for basic. try it out I guess
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…