Naomi --
My bad. This is what happens to people who re-type lines rather than cutting and pasting. Line should have read
lnColIndex=loColumn.ColumnOrder
That make more sense? (Property ColumnOrder only applies to columns)
(How embarrassing)
>>Yuri --
>>
>>loGrig.objects is the list of all objects in a container, which, for a grid, is the same as loGrid.columns.
>>
>>Note that the statement which follows,
lnColIndex = loColumn.controlsource
, would fail if loColumn were not a column object, as only column objects have that property.
>>
>Textboxes also have this property, not to mention other controls.
>
>Also why it's numeric? It should be character. Something is definitely wrong here.
Jim Nelson
Newbury Park, CA