读书人

Memo1-gt;Lines-gt;Delete(1)-报错:Membe

发布时间: 2012-02-14 19:19:19 作者: rapoo

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 或者顺序有问题?
[解决办法]
新建个工程试试

读书人网 >C++ Builder

热点推荐