取网格中字段值
RowIndex = DBGrid14.GetCurRowIndex‘得到当前行索引
nRowIndex = DBGrid14.GetCurRecordIndex ‘为空
msgbox (DBGrid14.GetFieldStringValue("项目名称",RowIndex-1))’得到当前行相应字段值
msgbox (DBGrid14.GetFieldStringValue("项目名称",nRowIndex))’得到当前行相应字段值
取网格中日期字段值:
strdtcFrom = DBEngine.ToDateString(DBGrid14.GetFieldStringValue("起始时间",nRowIndex))
浙公网安备 33010602011771号