Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MisUnderstanding FOR EACH
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01329767
Message ID:
01329791
Views:
20
>The FOR EACH loop provides 'read-only' accesss.
>In case of arrays, it's the same as
>
>*FOR EACH scode IN thisform.aStatuscodes
>FOR i=1 TO ALEN(thisform.aStatuscodes)
>	scode = thisform.aStatuscodes[i]
>...
>
Not for objects.
You could change their properties in FOR EACH loop.
FOR EACH oColumn IN thisform.Grid1.Columns
    oColumn.ReadOnly = (oColumn.ColumnOrder % 2 == 0)    
NEXT
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform