370 |
|
UTF8Insert(sPrefixText, sResultText, 1); |
371 |
|
end; |
372 |
|
Text := sResultText; |
373 |
– |
SelStart := iSelStart; |
374 |
– |
SelLength := UTF8Length(Text) - iSelStart; |
373 |
|
end; |
374 |
+ |
SelStart := iSelStart; |
375 |
+ |
SelLength := UTF8Length(Text) - iSelStart; |
376 |
|
end |
377 |
|
else |
378 |
|
begin |
440 |
|
var SQLDialect: integer; |
441 |
|
FieldNames: TStringList; |
442 |
|
begin |
443 |
< |
if (ListSource = nil) or (ListSource.DataSet = nil) then Exit; |
443 |
> |
if (ListSource = nil) or (ListSource.DataSet = nil) or |
444 |
> |
not (ListSource.DataSet is TIBCustomDataSet) or |
445 |
> |
((ListSource.DataSet as TIBCustomDataSet).Database = nil) then Exit; |
446 |
|
SQLDialect := (ListSource.DataSet as TIBCustomDataSet).Database.SQLDialect; |
447 |
|
FieldNames := TStringList.Create; |
448 |
|
try |