Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid subscript reference
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01173721
Message ID:
01173739
Views:
15
Terry,

All expressions in the FOR loop statement are evaluated only once at the start of the loop
lnMin = 2
lnMax = 3
FOR i = lnMin TO lnMax
	? i, lnMin, lnMax
	lnMin = 0
	lnMax = 5
ENDFOR
>
>Just on a wee efficiency note: why are you evaluating ALEN(laFiles,1) every time through the for loop - up to 13,000 time?
>
>I always use something like:
>
>lnAlen = ALEN(laFiles,1)
>For I = 1 to lnAlen ...
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform