【发布时间】:2012-12-18 21:56:11
【问题描述】:
我是在 VB 中使用数据集的新手,我一直无法找到实现以下目标的指导:
数据集中的一些描述太长了,有没有办法取描述的前 10 个字符?
我尝试过使用:
dataSet.Tables("statement-data").Rows(0).Item(1) = Left(dataSet.Tables("statement-data").Rows(1).Item(1).ToString)
但是我得到一个“Public Property Left As Integer has no parameters and its return type cannot be indexed”错误
示例数据
数据集表:statement-data
Date Description Debit/Credit Amount
01122012 Computer Equipment for North Office D 1000.00
01122012 Coffee D 25.68
02122012 Payment for Service C 1500.00
如果有人可以提供帮助,或者将我指向任何好的网站/指南,那就太棒了。 谢谢 马丁
【问题讨论】: