Jump to content

Callback Using Formshow( procedure(sender: TComponent; Result: Integer)


Recommended Posts

Posted

What is the correct way to pass and receive values using TComponent when a form is displayed and receive parameters differently when closed?

 

What kind of object is received / sent in the sender parameter: TComponent, I get different values, as I can use
You could put the code in pascal
thank you

 

 

 

 

 

 
FPARAMETROSGENMVL.ShowModal(
    procedure(sender: TComponent; Result: Integer)
      var
      i:Integer;
   begin
     if Result = mrOk then begin
 
 
      end;
     if Result = mrcancel then begin
     end;
   end);
end;

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