View Full Version: Imbricate For

DimensioneX Forum > Developers' Pub > Imbricate For



Title: Imbricate For
Description: imbricate for


cotteux - May 8, 2008 09:42 PM (GMT)
Hi , it's possible to imbricate for, like this

For y = 1 to 3
For x = 1 to 7

call initRow(x,y,6,1133,1)

Next
Next


I try this but i have an error


The game engine has encountered the following:
ERROR executing script
** Unexpected: (P|(EOF)|0.0) when looking for: Next
near line: 131
for i = 1 to 7

call initRow(j,i,6,1133,1)

<-- Error here
Engine version: 6.3.6
Game slot: 1
Game version: .05

Please report this error to the author of this game () so that it can get fixed.


Thanks

Cotteux

cotteux - May 8, 2008 09:48 PM (GMT)
sorry i found how to do


sub x(y)


For x = 1 to 7

call initRow(x,y,6,1133,1)

Next


....

For y = 1 to 3


call x(y)


Next

Cris - May 11, 2008 06:21 PM (GMT)
Oh yes the only way is to place the inner FOR into a subroutine




Hosted for free by InvisionFree