Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Andy230

    Form1 to Form2

    I changed the procedure, but get an error on compile: "formchange1.pas, missing operator or semicolon" placing a semicolon after Hide gives me 5 other errors. procedure TForm1.Button1Click(Sender: TObject); begin (* Form1.Close; no-no THIS CLOSES YOUR APP! *) Hide {optional - remove "//"...
  2. Andy230

    Form1 to Form2

    Yes, I inserted following: Button1.caption := 'next form'; and yes it showed very quickly, because Delphi is going back to edit mode instead of showing form2.
  3. Andy230

    Form1 to Form2

    Yes I checked the event and it is OnClick.
  4. Andy230

    Form1 to Form2

    @Opieo Both forms were created at the start. The button acts on a click because the procedure name is Button1.Click.... the button points to a click event. Switching the close and open instructions don't help.
  5. Andy230

    Form1 to Form2

    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...

Part and Inventory Search

Back
Top