Hi, I am a nemwbe to Delphi and I am trying out small programs to get acquainted.
Now I just wonder how you switch from Form1 to Form2.
I have this coded in Form1:
procedure TForm1.Button1Click(Sender: TObject);
begin
Form1.Close;
Form2.Show;
end;
Compiling is OK, but when I run the program, nothing happens. Only Form1 shows, when clicking on the Button1
nothing happens. What is wrong?
Next, how can I make available an array defined in Form1 to be in the scope of Form2.
Now I just wonder how you switch from Form1 to Form2.
I have this coded in Form1:
procedure TForm1.Button1Click(Sender: TObject);
begin
Form1.Close;
Form2.Show;
end;
Compiling is OK, but when I run the program, nothing happens. Only Form1 shows, when clicking on the Button1
nothing happens. What is wrong?
Next, how can I make available an array defined in Form1 to be in the scope of Form2.