Delphi XE, ADS 10.1
Data: Field=ITEMNR
Fields: "M-M123"
        "M"
        "M M123"

If i am trying an incremental search in a dbEdit using a Locate-method in the onChange-event with "M " ADS will NOT position to "M M123", but will remain on "M-M123" ! That is a big problem for us because the incremental search is giving a wrong result. Do you have some solution for this error?

asked 17 Sep '13, 06:03

King-Soft's gravatar image

King-Soft
1112
accept rate: 0%

edited 17 Sep '13, 09:17

Mark%20Wilkins's gravatar image

Mark Wilkins
7.2k226133


This is because a char field is always padded with blanks and so 'M' and 'M ' are identical.

link

answered 17 Sep '13, 06:08

Joachim%20Duerr's gravatar image

Joachim Duerr
8.7k1031133
accept rate: 18%

Thanks Joachim, but some of our components (eg. dbLookUpEh from the EHLib) uses intern the locate-function und therefore the result is wrong and we can't use it. (and i have hundreds of this components in my application!)

(18 Sep '13, 07:41) King-Soft
Your answer to the original question.
If responding to a request for additional information, please edit the question or use the comment functionality.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×271
×14

Asked: 17 Sep '13, 06:03

Seen: 1,235 times

Last updated: 18 Sep '13, 07:55

Advantage Developer Zone Contact Us Privacy Policy Copyright Info


Powered by Advantage Database Server and OSQA
Disclaimer: Opinions expressed here are those of the poster and do not necessarily reflect the views of the company.