Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i have one page which is inluded checkbox and i need to get the checkbox's values on other page.
how can i pass the value to one to second page?

What I have tried:

nothing special
google searchs
Posted
Updated 30-Aug-16 18:56pm

1 solution

You can just access it.

Mention your Unit1(Other form) in Unit2(1st page) in uses
In case you have already added unit2 in unit1 uses, You will have to add unit1 in implementation uses section of unit2.

You can then just call the items.

Sample(from implementation section):

Pascal
implementation

{$R *.dfm}

uses
  Unit1;

procedure TForm2.Button1Click(Sender: TObject);
begin
  if Form1.CheckBox1.Checked then
      Label1.Caption := 'Checked'
  else
      Label1.Caption := 'Unchecked'
end;

end.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900