Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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 :cry:
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top