什么跳,没这个问题,关键该语句你用在哪个事件上。
Rich Explorer V3.1 简介 Build 0605
作者:左轻侯
sgMain:dbgrid
procedure TfrmMain.sgMainSelectCell(Sender: TObject; ACol, ARow: Integer;
var CanSelect: Boolean);
var
ID:string;
begin
if ACol = 1 then
begin
ID := sgMain.Cells[0,aRow];
if ID <> '' then ShowRecord(strtoint(ID));
end;
end;
procedure TfrmMain.ShowRecord(ID:Integer);
var
i:integer;
QuesInfo:TQuesInfo;
begin
try
DM1.GetQuesContent(ID,QuesInfo);
sb1.Panels[0].Text:='正在更新视图……';
ShowHtml(IE,QuesInfo.Content);
with QuesInfo do
begin
lblTitle.Caption:= '来自' + from + ':' + subject;
LVInfo.Items.Clear;
LVInfoAdd('标题',subject);
LVInfoAdd('编号',ID);
LVInfoAdd('提问者',from);
LVInfoAdd('提问时间',RegdateTime);
LVInfoAdd('最后回复时间',datetime);
LVInfoAdd('分数',Points);
LVInfoAdd('状态',Status);
LVInfoAdd('所属类别',RoomName);
LVInfoAdd('阅读次数',GetTimes);
LVInfoAdd('回复次数',ReplyTimes);
end;
PCContent.ActivePageIndex := 0;
frmMain.FocusControl(IE);
finally
sb1.Panels[0].Text:='完成';
end;
end;