Click to See Complete Forum and Search --> : Can't binding the field.


SUNRISE
July 18th, 2000, 06:15 AM
I want to use IADORecordBinding to get the table
fields, under is source code :

(temp_doc->m_pRecordset) ->PutRefSource( temp_doc->m_pCommand) ;
(temp_doc->m_pRecordset) ->Open( &vNull , &vNull , adOpenDynamic,adLockOptimistic,adCmdText) ;
(temp_doc->m_pRecordset) -> QueryInterface(__uuidof(IADORecordBinding ), (LPVOID *) &( temp_doc->m_piAdoRecordBinding ));

(temp_doc->m_piAdoRecordBinding) -> BindToRecordset( &(temp_doc->m_rs)) ;

m_rs : my define class from CADORecordBinding
m_pRecordset : CRecordset

But I can't get the field's value , if use
GetCollect("force1") , I can get the value .

Pls tell me how to binding the fields .

Thank you very much .