Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 2nd May 2004, 05:32 PM   (permalink)
Default String Variable?

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?
Timmymna is offline  
Old 3rd May 2004, 12:03 AM   (permalink)
Default

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
The Real MicroMan is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:53 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker