?? subject_39586.htm
字號:
<p>
序號:39586 發(fā)表者:panpy 發(fā)表日期:2003-05-12 09:52:02
<br>主題:能否用ado數(shù)據(jù)綁定控件datagrid取得數(shù)據(jù)?
<br>內(nèi)容:使用datagrid可以將adodc連接的數(shù)據(jù)庫的數(shù)據(jù)顯示出來,那能不能將這些數(shù)據(jù)(我要用的數(shù)據(jù)就是一些數(shù)字,要對這些數(shù)字進(jìn)行處理)賦給一個變量進(jìn)行運(yùn)算???<BR>請高手不吝賜教3x
<br><a href="javascript:history.go(-1)">返回上頁</a><br><a href=http://www.copathway.com/cndevforum/>訪問論壇</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回復(fù)者:sheep 回復(fù)日期:2003-05-20 11:03:46
<br>內(nèi)容:剛剛摸索出來,希望互相幫助。<BR>int i=m_ado.GetRecordset().GetFields().GetItem(COleVariant((long)0)).GetValue().iVal;//取出0字段,屬性為整數(shù)<BR>double ll=m_ado.GetRecordset().GetFields().GetItem(COleVariant((long)4)).GetValue().dblVal;<BR>//取出4字段,屬性為雙精度<BR><BR>對dataGrid操作應(yīng)該也可以,時間趕得緊我沒試。
<br>
<a href="javascript:history.go(-1)">返回上頁</a><br><a href=http://www.copathway.com/cndevforum/>訪問論壇</a></p></blockquote>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -