1

以下代码行生成编译时错误 (PE19) 没有参数为 0 的重载方法“get_item”。关于如何使用 Oxygene 访问数据行中的数据的任何想法?

indexValue:=dtIndexValues.Rows[1].Item('IndexID');
4

1 回答 1

3
indexValue := dtIndexValues.Rows[1].Item['IndexID'];

或者

indexValue := dtIndexValues.Rows[1]['IndexID'];

因为 Item 是默认索引器。

于 2009-11-09T19:39:29.887 回答