Thread: What's Wrong?

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    2
    Rep Power
    0

    What's Wrong?


    We're building a program which need password to access...
    But we can't get it to work!
    Can you guys please help us, we just don't see what we've done wrong!

    Code:
    procedure TPasswordDlg.OKBtnClick(Sender: TObject);
    begin
    if Password.Text = psw.Lines.Strings[1] then
    Form1.Show
    else
    ShowMessage('Access Denied!');
    end;
    
    end.
    We get the error: "Undeclared identifier: 'ShowMessage'"
    Last edited by Slangen; April 16th, 2004 at 06:12 PM.
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,593
    Rep Power
    4207
    Put Dialogs in the uses section.
    Code:
    uses
       lots, of, modules, Dialogs;
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    2
    Rep Power
    0
    Ahh... Thanks!!

IMN logo majestic logo threadwatch logo seochat tools logo