General rule I use. Do not call methods within methods - it ensures the compiler is able to process the source file correctly. I would use the approach shown below:
But, thanks for letting us know.
~~~~~
#chip mega328p, 16
bCount = 10
Start:
sTmp = Str(bCount) ' move increment to the next command line.
bCount++
Goto Start
End
~~~~
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
GCBasic.Exe may 11, 2014 in SynWrite 6.5.1030
---- Test Code ----------------------- (*)
#chip mega328p, 16
bCount = 10
Start:
sTmp = Str(bCount++)
Goto Start
End
--------------------------------------
It's the '++' after 'bcount' that causes the bug of course
It crashes when I click the 'Hex' button of SynWrite to compile only the Hex file thus it
crashes during compilation.
It's not only a bug, it crashed my Vista nearly each time I try it.
Not a big deal except the crash.
Thank you for GCBasic and SynWrite
Erdy
(*) I tried [quote][/quote], ... and many more, Formatting Help is not a big help for me :-)
Thanks for making everyone aware.
General rule I use. Do not call methods within methods - it ensures the compiler is able to process the source file correctly. I would use the approach shown below:
But, thanks for letting us know.
~~~~~
#chip mega328p, 16
bCount = 10
Start:
sTmp = Str(bCount) ' move increment to the next command line.
bCount++
Goto Start
End
~~~~