PDA

View Full Version : String arrays



moisture
- 17th May 2006, 16:36
Hi All, In PBPro I would like to set and array equal to a string then send that array out the serial port with Hserout [STR array\arraysize,$0D].

Currently the only way I know how is array(0) = 'H', array(1) = "O" etc.
How do I automate this? so I can call a routine, pass the string and have it stick it in the array for me?

Cheers,

Pat.

ChrisMicro
- 3rd November 2007, 07:38
There is no other way to handle strings in PBP

sayzer
- 3rd November 2007, 08:28
Hi All, In PBPro I would like to set and array equal to a string then send that array out the serial port with Hserout [STR array\arraysize,$0D].

Currently the only way I know how is array(0) = 'H', array(1) = "O" etc.
How do I automate this? so I can call a routine, pass the string and have it stick it in the array for me?

Cheers,

Pat.

Where does your string come from?

Jerson
- 3rd November 2007, 12:00
Are you looking for something like this??



prn_SetDate: PokeCode "Date changed",0
prn_SetTime: PokeCode "Time changed",0
prn_LogPrinted: PokeCode "Log printed",0


These strings are in program space.