Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iterating through columns
Message
De
30/05/2010 13:55:37
 
 
À
30/05/2010 13:32:34
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01466580
Message ID:
01466581
Vues:
85
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform