取网格中字段值

 

RowIndex = DBGrid14.GetCurRowIndex‘得到当前行索引

nRowIndex = DBGrid14.GetCurRecordIndex ‘为空

msgbox (DBGrid14.GetFieldStringValue("项目名称",RowIndex-1))’得到当前行相应字段值

msgbox  (DBGrid14.GetFieldStringValue("项目名称",nRowIndex))’得到当前行相应字段值


 

取网格中日期字段值:

strdtcFrom = DBEngine.ToDateString(DBGrid14.GetFieldStringValue("起始时间",nRowIndex))

posted @ 2005-11-05 17:22  致远钓客  阅读(152)  评论(0)    收藏  举报