Sorry for bothering all of you...but i have "discovered" another problem....
It's not the "for...each" the problem....but the function itself!
I have deleted the call to the function and instead write what it was inside the function at the start of the main....i even write the "for...each" loop to go trough the type object and....all go well,even the calls to millisecs()!
So i think there's something wrong with the functions...
I have always thinked that what is inside of a function is like it was inside the main ,because if i call the function at every main loop it's similar to if i write the code in the loop...but it seems it's not like this.
Some code must be INSIDE the main,even if thet function is called everytime...argh what a mess!
(i don't even thinked that 3000 or so lines of code are so difficult to "maintain" ...)
It's not the "for...each" the problem....but the function itself!
I have deleted the call to the function and instead write what it was inside the function at the start of the main....i even write the "for...each" loop to go trough the type object and....all go well,even the calls to millisecs()!
So i think there's something wrong with the functions...
I have always thinked that what is inside of a function is like it was inside the main ,because if i call the function at every main loop it's similar to if i write the code in the loop...but it seems it's not like this.
Some code must be INSIDE the main,even if thet function is called everytime...argh what a mess!
(i don't even thinked that 3000 or so lines of code are so difficult to "maintain" ...)