Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

++ did not work

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

++ did not work

the increment with variable compiled ok but did not wrok

dword indx;
indx = 0;
indx++;  // this did not increase the indx var
print('ndx = ',indx);

http://www.freewebs.com/ogremagic/index.htm

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

is that a local or global variable?

Colin admin
Posts
928
Threads
49
Location
Bulgaria

nm, local variable inc and dec had small error :) fixed and updated the beta package.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

thanks . works fin now.

http://www.freewebs.com/ogremagic/index.htm

0CodErr member
Posts
201
Threads
37
Location
Unknown

Global variables:

byte  MyByte;
word  MyWord;
dword MyDword;
MyByte++;
MyWord++;
MyDword++;
Invalid operand(s)
Colin admin
Posts
928
Threads
49
Location
Bulgaria

Fixed for next release. Thanks for report.