0

If i have 2 Forms, and i create procedure in Form1 how to call it from Form 2?

I heard about "Call Back Procedure" and "Procedural Types" but i don't know how to use that.

Can someone write me example of Call Back Procedure using Procedural Types and 2 Forms.

Tripta
  • 35
  • 7
  • 1
    If the procedure belongs to form1 (in the body of the class Tform1) then put it in the public section and call it from the second form if they are both written in the same unit ( yes they can be in the same unit file) if not then simply write the unit name of the first form then a dot then the name of the form then a dot then the procedure ( unit1.form1.dosomthing). If it does not belong to the body of the form then write the title of the procedure (declaration) in the interface section and call it like this from the second unit ( unit1.dosomthing) – Nasreddine Galfout Feb 19 '19 at 21:11
  • 1
    See e.g. https://stackoverflow.com/questions/11569398/call-procedure-on-another-form – MartynA Feb 19 '19 at 21:12

0 Answers0