uses了TntClasses,定义变量aaa
aaa:TTntStrings;
然后用这个代码
aaa.Add('dddddddd');
aaa.Text:='fffffffffff';
aaa.Text:=aaa.Text+'dddddddddddd';Add是干活了,Text没动静,单步跟踪到TntWideStrings.pas里
property Text: WideString read GetTextStr write SetTextStr;再跟到procedure TWideStrings.SetTextStr(const Value: WideString);
里面刚调用虚函数Clear,就报错Abstract Error崩溃了然后aaa.Text就一直是空的……
aaa:TTntStrings;
然后用这个代码
aaa.Add('dddddddd');
aaa.Text:='fffffffffff';
aaa.Text:=aaa.Text+'dddddddddddd';Add是干活了,Text没动静,单步跟踪到TntWideStrings.pas里
property Text: WideString read GetTextStr write SetTextStr;再跟到procedure TWideStrings.SetTextStr(const Value: WideString);
里面刚调用虚函数Clear,就报错Abstract Error崩溃了然后aaa.Text就一直是空的……
解决方案 »
- 找DELPHI老师
- 我总觉的自己太笨
- 有谁能帮我解释这条语句中的参数的意思
- radiobutton的caption属性值看不到
- 如何判断一个指针是不是一个类的实例?
- 200分求:《Delphi6企业级解决方案及应用剖析》电子书和光盘源程序!!!!
- 带上、下加减按钮的edit控件如何实现?
- 全国范围Delphi程序员的现状和薪资调查?
- 在delphi7的New Items对话框中的Multitier选项卡里如何没有MTS DataModule项?
- delphi7 窗体如何响应键盘事件?窗体的KEYdown事件不响应呢?
- 求源代码下载地址,自学的DELPHI,实在不知该怎么进步了,求一些源代码下载地址,自己看看,积累点功能代码
- 数据分左右两边的报表,汇总却不分两边要怎么实现
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,TntClasses, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;
aaa:TTntStrings;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
aaa.Add('dddddddd');
aaa.Text:='fffffffffff';
aaa.Text:=aaa.Text+'dddddddddddd';
end;end.
你应该补补有关delphi的class的基础知识
[警告] Unit1.pas(29): Constructing instance of 'TTntStrings' containing abstract method 'TWideStrings.Delete'
[警告] Unit1.pas(29): Constructing instance of 'TTntStrings' containing abstract method 'TWideStrings.Insert'仍然报错Abstract Error
你还是先看书去吧