Einzelnen Beitrag anzeigen

rantanplan99
(Gast)

n/a Beiträge
 
#2

Re: Problem with opening .res file

  Alt 7. Mär 2005, 10:09
Hi,

some rules first: open up a new thread for every problem you have. don't put 2 different problems in the same thread.
second: please use the "Delphi-Code" Tags for sourcecode.

for problem #2: you have to put a semicolon ; at the end of the line, like this
Edit1.SetFocus; you can omit the semicolon if its the last command in your code-block wich is terminated by an end; like this

Delphi-Quellcode:
procedure a;
begin
  Edit1.SetFocus
end;

or

procedure b;
var
  i: integer;
begin
  i := 0;
  if (i = 5) then begin
    Edit1.SetFocus
  end;
  i := 1;
end;

the following gives you an error:

procedure c;
begin
  Edit1.SetFocus
  ShowMessage('MessageBox')
end;
maybe in your delphi book, the Edit1.SetFocus Command was followed by an end;

rantanplan
  Mit Zitat antworten Zitat