Nov 3, 2003 #1 G 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
Nov 3, 2003 #2 T tgq Full Member level 5 Joined Jul 15, 2002 Messages 289 Helped 7 Reputation 14 Reaction score 4 Trophy points 1,298 Activity points 2,360 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)
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)
Nov 3, 2003 #3 G 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 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
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
Nov 3, 2003 #4 Tornado Full Member level 3 Joined Apr 26, 2002 Messages 167 Helped 11 Reputation 22 Reaction score 9 Trophy points 1,298 Activity points 1,265 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
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
Nov 4, 2003 #5 T tgq Full Member level 5 Joined Jul 15, 2002 Messages 289 Helped 7 Reputation 14 Reaction score 4 Trophy points 1,298 Activity points 2,360 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
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
Nov 4, 2003 #6 G 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 working with string in picbasic I don't know MBasic but do MBasic use ICD how microcode studio plus ?
working with string in picbasic I don't know MBasic but do MBasic use ICD how microcode studio plus ?