标题:普通窗体引用子窗体控件问题
只看楼主
hlw
Rank: 1
等 级:新手上路
帖 子:12
专家分:0
注 册:2007-3-26
 问题点数:0 回复次数:0 
普通窗体引用子窗体控件问题

Procedure Tprint.Button1Click(Sender: TObject);
begin
Fagreement_in.frxDBDataset_agreement.CloseDataSource:=true;
Fagreement_in.frxDBDataset_agreement.OpenDataSource :=false;
case radiogroup1.ItemIndex of
0:begin
Fagreement_in .frxDBDataset_agreement.RangeBegin:=rbFirst;
Fagreement_in.frxDBDataset_agreement.RangeEnd :=reLast;
Fagreement_in.frxDBDataset_agreement.RangeEndCount:=0;
end;
1:begin
Fagreement_in.frxDBDataset_agreement.RangeBegin:=rbCurrent;
Fagreement_in.frxDBDataset_agreement.RangeEnd :=reCurrent;
Fagreement_in.frxDBDataset_agreement.RangeEndCount:=0;
end;
2:begin
Fagreement_in.frxDBDataset_agreement.RangeBegin:=rbCurrent;
Fagreement_in.frxDBDataset_agreement.RangeEnd :=reCount;
Fagreement_in.frxDBDataset_agreement.RangeEndCount:=strtoint

(edit1.text);
end;
3: begin
Fagreement_in.frxDBDataset_agreement.RangeBegin:=rbCurrent;
Fagreement_in.frxDBDataset_agreement.RangeEnd :=reLast;
Fagreement_in.frxDBDataset_agreement.RangeEndCount:=0;
end;
end;

Fagreement_in.frxDBDataset_agreement.CloseDataSource:=false;
Fagreement_in.frxDBDataset_agreement.OpenDataSource :=true;
end


错误提示:

Project jzgl.exe raised exception class EAccessViolation with

message'Access violation at address 0059CF17 in module 'jzgl.exe'.Read

of address 0000003CC'.~~~

搜索更多相关主题的帖子: 窗体 控件 
2007-09-07 11:23



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-168343-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.653960 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved