Main Menu

INC and DEC

Started by Ian Price, September 07, 2005, 06:55:48 AM

Previous topic - Next topic

Ian Price

I've been using Types on my next game and noticed that INC and DEC do not appear to affect Type variables.  Am I doing something wrong, or is this the case?

Would it be possible to implement this?

I know I can just use -frog.x=frog.x-1
but
Dec frog.x is quicker to write and Dec is faster than variable=variable-1.


Update Note: PLayBASIC V1.64 and above support various C styled operators such as  ++,--,*=,/=,+=,-= etc, which work on anything



I came. I saw. I played some Nintendo.

BlinkOk

#1
have a look at this thread;
INC Bug (login required)

Ian Price

#2
Quotehave a look at this thread;

OK. Cheers. [Mental Note]  Must search forums first :P
I came. I saw. I played some Nintendo.