Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and columns
Message
De
02/12/2004 05:24:32
 
 
À
02/12/2004 05:15:54
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
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:
00966299
Vues:
6
thanks Erick but I was wondering if there was a direct function or property
to do it.
:-)

>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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform