Options

cycle in NAT Tips&Tricks

ikik Member Posts: 22
edited 2004-07-12 in NAV Tips & Tricks
//If you need to execute cycle without table (for example in report)
//you should make next:

//in trigger OnPreReport
kk := 0;

REPEAT
kk += 1;

// - your operators
...
...
// - your operators

IF (something) THEN EXIT;

UNTIL kk = 1000;

Comments

  • Options
    eksekjeksekj Member Posts: 4
    Don't get a point

    for kk:=1 to 10000 do begin

    //operation


    end


    Does not fit?
  • Options
    ikik Member Posts: 22
    Certainly fit.
Sign In or Register to comment.