with MainForm.q2 do
begin
Close;
SQL.Clear;
SQL.Add('Select * from Color ') ;
open;
while not eof do
begin
//颜色起止:$00D0E7F4 - $00E7DBEA
for i :=1 to RecordCount do
begin
Application.ProcessMessages;
mycolor:=$00D0E7F4+i * RecordCount;
MainForm.exesql('UPdate Color set Color='''+colorToString(mycolor)+''' where wonbr='''+FieldValues['wonbr']+''' ');
next;
end;
next;
end; end;
ShowMessage('生成颜色成功!');
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货