我用一个Tmyfunction=function(sqlstr:string):_recordset;stdcall;返回了一个recordset的值可以什么把它显示到GRID中呢?
我知道 recordsetFields[0].Value 可以显示出,可是返回的数据很多,什么一下子可以显示出来呢?
如把它显示在dbgrid或stringgrid中??????

解决方案 »

  1.   

    Use of Recordset to directly access the underlying ADO recordset object requires a good working knowledge of ADO objects in general and the ADO recordset object in particular. Using recordset is not recommended unless you are familiar with recordset object operations. Consult the Microsoft Data Store SDK help for specific information on using recordset objects
    BORLAND推荐不使用RECORDSET
    你怎么不考虑用ADOQUERY直接返回?
      

  2.   

    nyf1220能这样用吗? result:=adoquery