开发者

How access datarow value using Oxygene

开发者 https://www.devze.com 2022-12-10 18:43 出处:网络
The following line of code generates the compile time error (PE19) There is no overloaded method \"get_item\" with 0 parameters.Any idea on how to access the data in the datarow using Oxygene?

The following line of code generates the compile time error (PE19) There is no overloaded method "get_item" with 0 parameters. Any idea on how to access the data in the datarow using Oxygene?

index开发者_运维问答Value:=dtIndexValues.Rows[1].Item('IndexID');


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

or

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

since Item is the default indexer.

0

精彩评论

暂无评论...
验证码 换一张
取 消