Register | Login
Forum Index > Requests and Feedback > for with variable
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[957] for with variable - posted: 2011-12-04 18:14:03

Hi Colin.

sometimes i need to use a variable with for block, something like that
Code:
  int32 maxVal = 1000;
  int32 minVal = 500;
  for( Eax = minVal to maxVal)
   {
      ........
      ........
   }
 


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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[962] - posted: 2011-12-05 18:19:16
It is now possible to do this.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[964] - posted: 2011-12-05 18:47:18

thank you Colin.

also need that
Code:
  int32 var;
  Ecx += var; 


i know it can be like that
Code:
  add Eax,var;


but as you know , heih level has it's attractive.


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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[967] - posted: 2011-12-05 19:00:10
you need? you mean you would like smile

anyways i have added this but it will need a bit testing. updated the beta.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[968] - posted: 2011-12-05 19:05:40

of course this while loop will not end.smile
Code:
  while(i need == i would like)
   {
     ...........
   } 


again thank you.

http://www.freewebs.com/ogremagic/index.htm
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 5 user(s) online. 0 member(s) and 5 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd