我定义了一个record:
nerveCell = record
... ...
end;
然后在一个类中定义了一个private,这是一个数组:
private:
FinputLevel: array[0..inputLevelNo - 1] of nerveCell;
现在的问题是怎么样定义一个property与之对应?我写了这个句子,编译不过:
public
property inputLevel: array[0..inputLevelNo - 1] of nerveCell read FinputLevel write FinputLevel; 出错提示是:Identifier expected but 'ARRAY' found。
还请各位大侠指点。
nerveCell = record
... ...
end;
然后在一个类中定义了一个private,这是一个数组:
private:
FinputLevel: array[0..inputLevelNo - 1] of nerveCell;
现在的问题是怎么样定义一个property与之对应?我写了这个句子,编译不过:
public
property inputLevel: array[0..inputLevelNo - 1] of nerveCell read FinputLevel write FinputLevel; 出错提示是:Identifier expected but 'ARRAY' found。
还请各位大侠指点。
解决方案 »
- 如何返回一个表达式的数据类型?
- 请问 怎样将网格中的数据导入到EXCEL呀??
- 怎样屏蔽鼠标右键?
- 随机字符串
- ODBC通讯链接失败
- Delphi中自定义了快捷输入格式(Tools->editor options->codeinsight)后,我记得只要拷贝哪个文件就可以把这些快捷输入拷贝到另一个delphi
- 有没有倒班的同志?下在这个软件看看,有没有用。
- findkey的问题?
- 菜鸟问题“Query1:dataset not in edit or insert mode.”怎么解决?
- Delphi中如何取得一个汉字的声母,包括一些冷僻字。
- 如何选中DBGrid中的一行记录????
- 50分问怎么在delphi里面看类的结构图?各个类的关系?
TArrayCell = aarray[0..10] of nerveCell;
//...
private
FinputLevel : TArrayCell ;
//...
pubished
property inputLevel: TArrayLevel read FinputLevel write FinputLevel ;
end;
//...