docjones Posted April 2, 2015 Posted April 2, 2015 try kk:=TSearchFreeForm.Create(UniApplication); Kk.ShowModal( Procedure(Sender: TComponent; Result:Integer) begin if Result=mrOk then Begin //Query.Locate('numero',kk.Query.FieldByName('numero').AsString,[loCaseInsensitive]); End; End ); finally kk.Free; end; Hi. I just try creating a free form to search data, but when I call showmodal, error occurs (see attach). TSearchFreeForm is a simple empty Free form. I think that my code is correct. Versión 0.99.0.1150 Pro. Quote
Administrators Farshad Mohajeri Posted April 2, 2015 Administrators Posted April 2, 2015 Do not call kk.free. Form frees itself when closed. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.