Setting one variable in PicBasic string

Status
Not open for further replies.

gzorzi

Junior Member level 1
Joined
Jul 24, 2002
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
123
If I want to set one variable with this string "picbasicpro2.34 setup"
Can I do ?
Thanks
 

picbasic string compare

PICBasic doesn't provide string handling capabilities, strings can only be used with some commands.
But you can :
- create variable arrays
- use the directive #DEFINE (inline asm)
 

string picbasic

If I use

a var byte[20]

Can I put a string in a variable on 1 step ?

example a="derftgyhuju" ? I think no
Can I do it ?

I don't know #DEFINE directive

can you write me example ?
Thanks
 

pbp string handling

Hi Gzorzi, please take a look at:
**broken link removed**

I have an answer for you, can you try and let me know if it works?

Tornado
 

picbasic string arrays

hi
your example

a var byte[20]
a="derftgyhuju"

is not permitted with PbP
other compilers like MBasic pro allow this :?

you can use the #define directive only in inline asm, its a little more complicated

but if you use string array in built-in functions that get strings like serin you can use the PbP 'STR' modifier
 

working with string in picbasic

I don't know MBasic but do MBasic use ICD how microcode studio plus ?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…