with datamodule1 do
begin
tbHistory.Append;
tbhistoryMenuName.AsString := gName;
tbhistoryPrice.asCurrency := gtotal;
tbhistoryQTY.asInteger := gQTY;
tbhistory.Post;
end;这是我那段代码,当我click我的button时,在grid里的数据就会储存到另外一个database里,但是,每次我按储存时,都是单行储存,所以我想按储存按键时,是把这整个数据库的数据一起储存到另外一个数据库里,各位高手帮我看看,代码该怎样写
begin
tbHistory.Append;
tbhistoryMenuName.AsString := gName;
tbhistoryPrice.asCurrency := gtotal;
tbhistoryQTY.asInteger := gQTY;
tbhistory.Post;
end;这是我那段代码,当我click我的button时,在grid里的数据就会储存到另外一个database里,但是,每次我按储存时,都是单行储存,所以我想按储存按键时,是把这整个数据库的数据一起储存到另外一个数据库里,各位高手帮我看看,代码该怎样写
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货