Hi ,
I have a strange problem with command for loops (For and Next).
I have this function
Global myfoo
function the_function()
for myfoo = 1 to 20
print myfoo
next myfoo
endfunction
I post the function with empty FOR and NEXT to checkup the problem
but must be a bug.
When I compile my program with this function (Means all functions
which inludes at least one For and Next)
compiler says that:
"Cannot Find structure the_function:myfoo in local declariation"
After that program runs and Crashes , and I need to press ALT+CTRL+DEL to unstuck.
But there is no struct (Data types) in my source code yet.
I have Declare my functions with Global command before.
so I cant use For and Next function in my DarkBasic Pro.
Why is this happened?