Einzelnen Beitrag anzeigen

question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#1

Access variable from one form to another

  Alt 20. Aug 2013, 15:25
Hi,
How can pass the same variable in another form, for example, i have two forms, Form1 and Form2


TForm1.Calculation(OldID: Integer)

OldID := 1+1;

now i want to call the value of OldID from Form2. for example

TForm2.btnClick(Sender:Tobject)

Calculation();---> here how can i get the value of OldID from Form1?


if i declare again OldID in Form2 then it shows the value 0
  Mit Zitat antworten Zitat