Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and columns
Message
De
02/12/2004 05:15:54
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
 
 
À
02/12/2004 04:56:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00966290
Message ID:
00966293
Vues:
7
Hi Alessio,

>In a Grid object I can reference each columns by their idx number, what i was asking to myself is : how can I retrieve this number from a column ?
>I found properties like columnorder but it could change.
>Thanks
>Alessio

Try this function:
Function numberCol(toGrid as Grid, toColumn as Column) as Number
	LOCAL lnCol as Number

	FOR lnCol = 1 TO toGrid.ColumnCount
		IF toGrid.Columns(lnCol).Name = toColumn.Name
			RETURN lnCol
		ENDIF
	ENDFOR

	RETURN 0
EndFunc
Good luck!
Erick
Força Sempre!
Strength Always!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform