TOracleDataSet and Locate by blanks

matthias

Member²
Hi,

i just encountered a problem using the Locate-function of the OracleDataSet. I've field which sometimes contains 10 blanks. The method will fail because the search criteria is trimmed and the original value in the dataset not (see function NullField).

What would you suggest?

kindly regards,

Matt
 
If spaces are significant, you can set TOracleSession.Preferences.TrimStringFields to False. This way all trailing spaces will be preserved in the result set of a dataset.
 
Hi Marco,

thanks for your answer. But I already set TrimFields to false. As far as I can see it concerns the method SearchRecord where you're iterating through the FieldList. If the criteria is a ftString you do a StringArray[f] := TrimRight(Value); The trim method which cares about the setting is TrimString, I think.

Well, hope this will help. Thanks for your answer.

kindly Regards,

Matthias
 
Back
Top