Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

LMDEditFindDialog.Execute wrong answer


when we call LMDEditFindDialog.Execute we get always true, evenif user click cancel, any idea ?

Best Ragards
Ing Giuseppe Monteleone


  • 1 Comment sorted by Votes Date Added
  • Hi,

    Internally, TLMDEditSearchResult enum type is used to denote search process result:

    TLMDEditSearchResult = (srFound, srNotFound, srCancel);

    By some reason Execute method returns True when mentioned internal state is not equal to srNotFound. It's strange, but I can't change that because of backward compatibility. However, you can use dialog's LastResult property to differentiate between srFound, and srCancel cases.
Sign In or Register to comment.