超级新手 求助 delphi中的返回 (50分)

delphi 中 返回 是Result :='1'; 吗? 返回后是不是不在继续执行 后面代码了

比如:这样是不是 如果发现按键0按下 就返回0 下面代码就不在执行了?

function GetKeyA:string;
var vKey:integer;
begin
if GetAsyncKeyState(96)<>0 then begin
Result :='0';
end;

if GetAsyncKeyState(97)<>0 then begin
Result :='1';
end;

if GetAsyncKeyState(98)<>0 then begin
Result :='2';
end;

if GetAsyncKeyState(99)<>0 then begin
Result :='3';
end;

if GetAsyncKeyState(100)<>0 then begin
Result :='4';
end;

if GetAsyncKeyState(101)<>0 then begin
Result :='5';
end;

if GetAsyncKeyState(102)<>0 then begin
Result :='6';
end;

if GetAsyncKeyState(103)<>0 then begin
Result :='7';
end;

if GetAsyncKeyState(104)<>0 then begin
Result :='8';
end;

if GetAsyncKeyState(105)<>0 then begin
Result :='9';
end;
end;
[1149 byte] By [cscacn-555555555555555] at [2008-5-2]
# 1
全部都进行判断,加个EXIT语句,下面就不会执行后面代码了
ron_xin-星雨 at 2007-10-20 > top of Msdn China Tech,Delphi,非技术区...
# 2
这种最好用CASE结构,或者用楼上的方法。
# 3
CASE结构不行 我需要每个按键都判断
EXIT
cscacn-555555555555555 at 2007-10-20 > top of Msdn China Tech,Delphi,非技术区...
# 4
对,后面的代码得不到执行
njsn9w at 2007-10-20 > top of Msdn China Tech,Delphi,非技术区...