Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iterating through columns
Message
From
30/05/2010 13:32:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Iterating through columns
Miscellaneous
Thread ID:
01466580
Message ID:
01466580
Views:
93
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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Next
Reply
Map
View

Click here to load this message in the networking platform