adoquery.sql里的字符串是什么类型?为什么不能在edit.text中显示?

BeyondSky 2001-09-14 09:45:19
...全文
113 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
wave_calmly 2001-09-17
  • 打赏
  • 举报
回复
TADOQuery = class(TCustomADODataSet)
private
FSQL: TStrings;
FRowsAffected: Integer;
function GetSQL: TStrings;
procedure SetSQL(const Value: TStrings);
protected
procedure QueryChanged(Sender: TObject);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function ExecSQL: Integer; {for TQuery compatibility}
property RowsAffected: Integer read FRowsAffected;
published
property CommandTimeout;
property DataSource;
property EnableBCD;
property ParamCheck;
property Parameters;
property Prepared;
property SQL: TStrings read GetSQL write SetSQL;
~~~~~~~~
end;


TStringList = class(TStrings)
~~~~~~~~~~~ ~~~~~~~~
private
FList: PStringItemList;
FCount: Integer;
FCapacity: Integer;
FSorted: Boolean;

....
hellenlong 2001-09-14
  • 打赏
  • 举报
回复
TString类型
wave_calmly 2001-09-14
  • 打赏
  • 举报
回复
for i = 0 to AdoQuery1.SQL.Couunt -1 do
edit1.Text := edit1.Text + Adoquery1.SQL[i];
kuangning 2001-09-14
  • 打赏
  • 举报
回复
用memo1.lines.text := AdoQuery1.SQL.Text
肯定能行
gaoql 2001-09-14
  • 打赏
  • 举报
回复
错,应该是TStrings类型的
就是字符串列表啊
抱朴守拙 2001-09-14
  • 打赏
  • 举报
回复
adoquery.sql里的字符串是String类型,
EDit1.Text:=AdoQuery1.SQL.Text
poleax 2001-09-14
  • 打赏
  • 举报
回复
up
g_dragon 2001-09-14
  • 打赏
  • 举报
回复
EDit1.Text:=AdoQuery1.SQL.Text
BeyondSky 2001-09-14
  • 打赏
  • 举报
回复
意见不同一
angshuangxi 2001-09-14
  • 打赏
  • 举报
回复
是TStringList

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧