Welcome to %s forums

BrainModular Users Forum

Login Register

FastScript - For i:=0 to lngthMidi-1

I need help on a Patch
Post Reply
sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 06 Mar 2015, 18:58

Hello Everyone!

I am running into some strange issues with the For loop.
Up until this point I have used bigger sized messages, and it seems at this point there is a bug in the For loop.
If I set the lngthMidi equal to 1 it should essentially be the same as below:

Code: Select all

for i:=0 to 0 do begin

end;
However, even though it is supposed to be only 1 iteration of the loop it looks like it is running 2 iterations of the loop.


Curious I was wondering if anyone else has run into this?
"Every act of creation is first an act of destruction." -Picasso

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 08 Mar 2015, 16:23

I did get around this I had to use an additional, conditional statement with a break...it just seemed odd that this would present 2 iterations.
"Every act of creation is first an act of destruction." -Picasso

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests