Jump to content

strange behavior callbacks!


flexdev

Recommended Posts

Hi,

in a complex form I have this code :
_xScad.ShowModal(
      procedure  (Sender: Tcomponent; AResult: Integer)
      begin
        if AResult = mrOk then
          LoadEvent;

      end
   );

Anonymous procedure not execute at  showmodal return .... but if change the code to

.....

procedure TMainForm.ReLoadData(Sender: Tcomponent; AResult: Integer);
begin
  LoadEvent;
end;

...

  _xScad.ShowModal(ReLoadData);

the callback procedure is execute....


in many parts of my code I use anonymous callback procedures and works perfectly ....

 

Thank's for help.... :-)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...