Page 1 of 1
short calculations
Posted: Wed Jan 12, 2011 3:28 pm
by Primus1
Instead of doing:
a.i=0
a=a+1
debug(a)
You can do:
a.i=0
a+1
debug(a)
works also with -, / and *
Re: short calculations
Posted: Wed Jan 12, 2011 3:58 pm
by Demivec
With all due respect this doesn't qualify as a tip or trick, it's documented in the PureBasic Help file under "Variables and Types".
Re: short calculations
Posted: Wed Jan 12, 2011 4:04 pm
by ts-soft
Some other hints:
You should use Code Tags:
[ code ].... your code ... [ /code ] ) without the spaces!
And put
on the first line
Greetings - Thomas