Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and columns
Message
From
02/12/2004 05:24:32
 
 
To
02/12/2004 05:15:54
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966290
Message ID:
00966299
Views:
8
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform