the only thing you can do, is to import your .BAS to Word and do all formating there. But your point is interesting.
the only thing you can do, is to import your .BAS to Word and do all formating there. But your point is interesting.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Since this is possible:
MyArray VAR BYTE[20]
MyArray[0] = "H"
MyArray[1] = "i"
MyArray[2] = " "
MyArray[3] = "B"
...
Why not:
MyArray[0] = "Hi Blaine"
...
and then
...
MyArray[3] = "Rhonda"
??????
I'm not asking for full blown BASIC variable length string handling capabilities with garbage collection, but this one piece of functionality would be WONDERBAR!!!
MyArray[0]="String" will never work as each index must be a byte. but
MyArray var byte[20]
MyArray="String"
could be interesting. But as i don't really use array for string but prefer the 'embedded string in your code space' style or using an external eeprom... i can't see any benefit of... but maybe if
MyArray var byte[20]
Array2 var byte[20]
MyArray="Hello"
'
'
'
'
'
Hserin [STR Array2\20\13]
If array2=Myarray then DoSomething
now we talk of something easy to write and understand... usefull... yeas, no, toaster, hamburger... depending the way you think.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Has anyone written assembler functions that would stuff strings into arrays?
If someone would give me the basics of it, I'd love to write a set of low-level string functions for manipulating strings withing PBP arrays. Someone please help me get to first base and I'll run with it, posting the results as I go !
Just show me how to accomplish: MyArray = "Hi Blaine" via something like:
call stringassign MyArray, "Hi Blaine"
Then I'll try to write corresponding functions for mid, left, right, and concatenation. We'll debate, refine, and GO FORWARD CONQUERING!
you can play around the 'embedded string in your code space' stuff
http://www.pbpgroup.com/modules/wfse...p?articleid=10
just change the StringOut subroutine to send value to an array instead of sending it with HSEROUT.
it's still far of what you need but have a look at different method...take your time to read from the begining'till the end. You need the use of Macro.. there's few example in and there
http://www.picbasic.co.uk/forum/show...rings+embedded
and now we are far of the original topic![]()
Last edited by mister_e; - 12th July 2006 at 21:26.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks