嫩 嫩手 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-05 #3 比如吧:我要输出81个数,第一个数指定,第二个数在第一个数的基础上加10,第三个数 在第二个数的基础上再加10,以此类推...
嫩 嫩手 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-05 #5 我想用button的caption显示数值,但不知道怎么写了?可否给个提示?
F fdwangchao Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-05 #6 大哥你也大嫩了吧! var icount:Integer; const FirstNumber:Integer=<初始值>; begin for icount:=1 to 81 do begin Button.caption:=IntToStr(FirstNumber+icount*10); end; end;
大哥你也大嫩了吧! var icount:Integer; const FirstNumber:Integer=<初始值>; begin for icount:=1 to 81 do begin Button.caption:=IntToStr(FirstNumber+icount*10); end; end;
S shbjkl Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-06 #14 用 tag 了 每个button 给一个tag loop 一下了
F form2 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-07 #15 const fst=100; var Button81:array[1..81]of TButton; a:byte; begin for a:=1 to 81 do begin Button81[a]:=TButton.Create(nil); // ...........set left..top.. Button81[a].Caption:=inttostr(fst+(a-1)*10); Button81[a].Destroy; end;
const fst=100; var Button81:array[1..81]of TButton; a:byte; begin for a:=1 to 81 do begin Button81[a]:=TButton.Create(nil); // ...........set left..top.. Button81[a].Caption:=inttostr(fst+(a-1)*10); Button81[a].Destroy; end;
汪 汪向阳 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-08 #17 大哥,给分吧 var i,j: integer; j := 0; for i := 0 to componentscount-1 do begin if Components is tbutton then begin (components as tbutton).Caption := IntToStr(你的初始值 + j * 10); inc(j); end; end;
大哥,给分吧 var i,j: integer; j := 0; for i := 0 to componentscount-1 do begin if Components is tbutton then begin (components as tbutton).Caption := IntToStr(你的初始值 + j * 10); inc(j); end; end;