L
logpie
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.N1Click(Sender: TObject);
var S1:string;
S2:string;
begin
S1:='ÔÝÍ£¼à²â';
S2:='¼ÌÐø¼ì²â';
if N1.Caption =S1 then
begin
N1.Caption :=s2;
timer1.Enabled :=false;
end;
if N1.Caption =S2 then
begin
N1.caption:=S1;
timer1.Enabled :=true;
end;
end;
N1为一POPUPMENU,CAPTION的值和S1相等,可执行N1。CLICK时N1。CAPTION死活不变成S2的值~
这到底是为什么?
var S1:string;
S2:string;
begin
S1:='ÔÝÍ£¼à²â';
S2:='¼ÌÐø¼ì²â';
if N1.Caption =S1 then
begin
N1.Caption :=s2;
timer1.Enabled :=false;
end;
if N1.Caption =S2 then
begin
N1.caption:=S1;
timer1.Enabled :=true;
end;
end;
N1为一POPUPMENU,CAPTION的值和S1相等,可执行N1。CLICK时N1。CAPTION死活不变成S2的值~
这到底是为什么?