Delphi7中如何显示DBGrid中的某一值?

2025-06-22 04:51:36
推荐回答(1个)
回答1:

tb:TADOTable;
label1:label;

..Click方法
var v:int
begin
if tb.locate('位置',5,[]) then
begin
v:=tb.FieldByName('工作时间'),asinteger;//这儿类型根据你的实际情况
lablel1.Caption:=inttostr(v);
end;
end;