茶
茶叶蛋
Unregistered / Unconfirmed
GUEST, unregistred user!
我的问题是:当我单步跟踪时,居然会从一大段代码中直接飞跃过去! ?
(本来我有一个Invalid Variant Type Conversation错误,
怀疑是在ConvertThreadintoHTML函数里头,想单步跟踪进去,没想到......)
是我的设置或者程序有问题,还是d4的bug?但是F7, F8都不行啊!
我的函数如下:
procedure TMainForm.NewArticle( AId : Integer );
var
Query : TQuery; Article : TBBS;
begin
Query := TQuery.Create(nil);
Query.DatabaseName:= DM.DBBS.DatabaseName;
Query.SQL.Add( Format( 'Select * from letters where id=%d', [ AID ] ) );
Query.Open;
Article := TBBS.Create( AID, Query ); //我的函数
IDText.Caption := Query[ 'ID' ];
showmessage( 'id' );
UserText.Caption := Query[ 'UserFrom' ];
showmessage( 'userfrom' );
// <font color="#ff0000">在这,就是在这! 从这跳走的! 天啊! :-((((((</font>
ExpertText.Caption := Query[ 'Expert' ];
showmessage( 'expert' );
PointText.Caption := Query[ 'Points' ];
showmessage( 'points' );
TimeText.Caption := Query[ 'RegDateTime' ];
showmessage( 'regdatetime' );
if FirstSelect then
begin
Label1.Visible := true;
Label2.Visible := true;
Label3.Visible := true;
Label4.Visible := true;
Label5.Visible := true;
IDText.Visible := true;
UserText.Visible := true;
ExpertText.Visible := true;
PointText.Visible := true;
TimeText.Visible := true;
Panel3.Visible := true;
Bar.Visible := true;
end;
Query.free;
Article.ConvertThreadintoHTML( ExtractFilePath( ParamStr( 0 ) ) + '0.html',
FormatHtml,
FormatTable ); //我的函数
if Activity then
WebBrowser1.Refresh
else
// <font color="#ff0000">跳到这里了! :-(</font>
WebBrowser1.OleObject.navigate( ExtractFilePath( ParamStr( 0 ) ) + '0.html');
end;
(本来我有一个Invalid Variant Type Conversation错误,
怀疑是在ConvertThreadintoHTML函数里头,想单步跟踪进去,没想到......)
是我的设置或者程序有问题,还是d4的bug?但是F7, F8都不行啊!
我的函数如下:
procedure TMainForm.NewArticle( AId : Integer );
var
Query : TQuery; Article : TBBS;
begin
Query := TQuery.Create(nil);
Query.DatabaseName:= DM.DBBS.DatabaseName;
Query.SQL.Add( Format( 'Select * from letters where id=%d', [ AID ] ) );
Query.Open;
Article := TBBS.Create( AID, Query ); //我的函数
IDText.Caption := Query[ 'ID' ];
showmessage( 'id' );
UserText.Caption := Query[ 'UserFrom' ];
showmessage( 'userfrom' );
// <font color="#ff0000">在这,就是在这! 从这跳走的! 天啊! :-((((((</font>
ExpertText.Caption := Query[ 'Expert' ];
showmessage( 'expert' );
PointText.Caption := Query[ 'Points' ];
showmessage( 'points' );
TimeText.Caption := Query[ 'RegDateTime' ];
showmessage( 'regdatetime' );
if FirstSelect then
begin
Label1.Visible := true;
Label2.Visible := true;
Label3.Visible := true;
Label4.Visible := true;
Label5.Visible := true;
IDText.Visible := true;
UserText.Visible := true;
ExpertText.Visible := true;
PointText.Visible := true;
TimeText.Visible := true;
Panel3.Visible := true;
Bar.Visible := true;
end;
Query.free;
Article.ConvertThreadintoHTML( ExtractFilePath( ParamStr( 0 ) ) + '0.html',
FormatHtml,
FormatTable ); //我的函数
if Activity then
WebBrowser1.Refresh
else
// <font color="#ff0000">跳到这里了! :-(</font>
WebBrowser1.OleObject.navigate( ExtractFilePath( ParamStr( 0 ) ) + '0.html');
end;