Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iterating through columns
Message
 
To
30/05/2010 13:32:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01466580
Message ID:
01466581
Views:
84
This message has been marked as the solution to the initial question of the thread.
>Can FOR EACH be used to iterate through all columns in a grid? I get the error "Property loGrid is not found", when I use the following code:
>
>
>loGrid = ThisForm.PgfPageFrame.Page1.GrdGrid
>FOR EACH loColumn as Column IN loGrid
>	WAIT WINDOW loColumn.Name TIMEOUT 1
>NEXT
>
>
>The debugger confirms that loGrid.BaseClass = "Grid".
>
>TIA,
>
>Hilmar.

Sure, but you should show where to iterate :-)
loGrid = ThisForm.PgfPageFrame.Page1.GrdGrid
FOR EACH loColumn as Column IN loGrid.Columns && here
	WAIT WINDOW loColumn.Name TIMEOUT 1
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