This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

LMDEditFindDialog.Execute wrong answer

Hi 

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

Best Ragards
Ing Giuseppe Monteleone

Comments

  • 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.