首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ Builder >

Memo1->Lines->Delete(1)-报错:Member idertifier expected解决方法

2012-02-14 
Memo1-Lines-Delete(1)----报错:Member idertifier expected我的程序里不知道少了什么东西,这个函数会报

Memo1->Lines->Delete(1)----报错:Member idertifier expected
我的程序里不知道少了什么东西,这个函数会报错。

可以如果我新建一个工程,就不会有这个问题。

哪位大侠帮我看一下??

在线等!

[解决办法]
Memo没有内容
if (Memo1-> Lines-> Count > 1)
Memo1-> Lines-> Delete(1);
[解决办法]
Introduces a pure virtual method to delete a specified string from the list.

virtual void __fastcall Delete(int Index) = 0;

Description

Descendants of TStrings implement a Delete method to remove a specified string from the list. If an object is associated with the string, the reference to the object is removed as well. Index gives the position of the string, where 0 is the first string, 1 is the second string, and so on.
[解决办法]
看程序是没什么错了
是不是其他什么地方有错
[解决办法]
是不是头文件没有 include 或者顺序有问题?
[解决办法]
新建个工程试试

热点排行