如一个TList,没有被Create
解决方案 »
- 软件使用后提示连接失败!
- delphi7开发控件,怎样调试
- 新学delphi: 大家帮我看看这个ADOQuery查询为什么不对。
- absolute怎么用的啊?
- 菜鸟请问XPMenu控件如何加载,谢谢了!
- 大家帮忙想想,我送什么礼物给男朋友呢?恋爱1年半了^^
- Midas的数据更新问题!!!进者有分!!! 有一定的建设性跟难度性
- 一个关于连接虚拟串口的问题,请指教
- 关于类型转换的问题:integer 和 extended
- 怎样给button添加一个属性如count,当click一下时count:=true,第二下count:=fasle
- vc的dll中函数里需要外部给一个十六进制的int数(比如0x1,0x2)delphi调用时我给了$01,$02,非法操作,why?
- 用什么函数得到系统内存?
ShowMessage('TList没有实例化');
if TList=nil then
ShowMessage('TList没有实例化')
好像不是我想要的效果
var
TextList: TList;
begin
if TextList = nil then
ShowMessage('No Assigned') TextList := TList.Create;
if TextList = nil then
ShowMessage('No Assigned')对于TextList 我不明白在create前后有什么差别?
TextList在没有赋值前是等于nil吗?
if not Assigned(TList) then
ShowMessage('TList没有实例化');
if TList=nil then
ShowMessage('TList没有实例化')
---------------------------------
上面的代码不是很安全,要少用才对.