Recent

Author Topic: Calling Procedures  (Read 2570 times)

jshand2010

  • Full Member
  • ***
  • Posts: 234
Calling Procedures
« on: November 14, 2010, 08:24:28 pm »
i have two forms frmOne and frmTwo

on frmTwo there is a procedure i would like to run.  how do i go about this on frmOne??
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Calling Procedures
« Reply #1 on: November 14, 2010, 08:30:11 pm »
1) Declare frmTwo on the uses clause of frmOne.
2) Call the procedure so: UnitOfFormTwo.ProcedureCall.

It can not go wrong.
« Last Edit: November 14, 2010, 08:39:59 pm by typo »

 

TinyPortal © 2005-2018