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!