It seems if the counter variable of the For/Next loop is carried to a subroutine, the counter reverses the sequence. Example:
global stpp as integer
function pbmain() as long
'' stpp goes 1 to 5
for stpp=1 to 5
? str$(stpp)
next stpp
'' stpp goes 5 to 1
for stpp =1 to 5
call test1
next stpp
end function
sub test1
? str$(stpp)
end sub
HYC
global stpp as integer
function pbmain() as long
'' stpp goes 1 to 5
for stpp=1 to 5
? str$(stpp)
next stpp
'' stpp goes 5 to 1
for stpp =1 to 5
call test1
next stpp
end function
sub test1
? str$(stpp)
end sub
HYC
Comment