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:
01329796
Views:
20
>You're confusing an object in a collection with collection itself. You still have read-only access to the collection.
>The same is true for an objects in an array. You can change the object properties but not the array item it's stored in.
>
>>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
>>
O!
I just misinterpret your answer.
I read it as "Everything is read-only", not just the collection itself. Sorry.
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