>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
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.