April 7th, 2012, 06:49 PM
Error 105 help
these are my two procedures
can you help me find out what my problem is that is causing error 105
thanks for any help
procedure TForm2.BtnExitClick(Sender: TObject);
procedure TForm2.BtnLoginClick(Sender: TObject);
if (Username.Text='User1') and (Password.Text='guest') then writeln ('Access granted')
else writeln('failed entry')
Writeln('Welcome please attempt to login but if you fail a virus will pass through your machine' , 'good luck');
April 8th, 2012, 04:31 PM
could you try to explain what are you trying to do. What kind of application you're are building? I'm pretty sure that this Writeln don't have to be there..
April 10th, 2012, 08:53 PM
it was a basic login form , with those messages popping up on log-in. the messages are jokes by the way .
April 11th, 2012, 02:36 AM
Are building a form application or console application? As far as I know WriteLn is used in console applications. Seenig the other methods in your code I'm assuming that you are building a form app. Is that true? If it is you can try method ot some other message PopUp
Last edited by Dimixx; April 11th, 2012 at 02:41 AM.