Subject IB_query.orderingfield,dbffieldname - only 10 chars long
Author G. Nau
IBO V4.5Ai

Hi,
I'm using the IB_query.orderingfield,dbffieldname to detect the
database field on which the actual sorting is based.
But I recognize now, that this field is limited to 10 chars, although it's
type is 'string' (so it should hold more chars).

I traced it back to ib_components.pas, procedure
TIB_Row.NameVARListForBDE

and the limiting line is ...
Columns[ ii ].FDBFFieldName := Copy( tmpStr, 1, 10 );
and some lines later

if Len > 10 then
System.Delete( FDBFFieldName,
10 - Length( IntToStr( ADBFCnt )),
10 - Len );

Is this intentual? Is this length limitation (at least this short one for 10
chars) really necessary?

Or do you have any other idea to find the fieldname of the actual
sorting?

Regards
Gunther Nau
__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Mit Yahoo! Suche finden Sie alles: http://suche.yahoo.de