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;

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...