View Full Version : Most common errors
TheGodfather
02-11-2007, 07:58 PM
This is getting alittle upsetting, becuase 90% of my errors are
Identifier Expected.... Whenever I try to make a procedure. It's soo irratatin.
Ill post examples.
syberium
02-11-2007, 08:03 PM
identifier usally means u need another end;
TheGodfather
02-11-2007, 08:09 PM
Program HumanType;
begin
Procedure SendKeysHuman(text:String);
Var
a1 : Integer;
Begin
a1:= 1;
Repeat
wait(random(220) + 15);
sendkeys(copy(text, a1, 1));
a1:= a1 + 1;
Until a1 > length(text);
End;
begin
SendKeysHuman('Test123');
end;
end.
I'd get Indentifier expected for the "Procedure SendKeysHuman(text: string);"
WT-Fakawi
02-11-2007, 08:28 PM
there should not be a begin after Program; first you do all the proc/func stuff
you misplaced one end;
Program HumanType;
Procedure SendKeysHuman(text:String);
Var
a1 : Integer;
Begin
a1:= 1;
Repeat
wait(random(220) + 15);
sendkeys(copy(text, a1, 1));
a1:= a1 + 1;
Until a1 > length(text);
End;
end;
begin
SendKeysHuman('Test123');
end.
TheGodfather
02-11-2007, 09:16 PM
Wow thanks, :) helps alot.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.