You can help me please , I use RecSet, but not work correctly, EOF() and BOF() not workink with RecSet, see you this example: I used MaeiaDb
- Code: Select all Expand view RUN
Function ListaUser(oCn)
local lOK, cData, oData, aRet := {}
lOk := .t.
cData := "SELECT nick FROM usuarios ORDER BY nick"
TRY
oData := oCn:RecSet( cData )
CATCH
lOK := .f.
END
If lOk
xbrowse(oData) // <----------------------------ok..
WHILE !oData:EOF() // <--------- :EOF(), BOF() With :RecSet not working, with RowSet is Ok
AADD(aRet, oData:nick )
oData:Skip()
ENDDO
EndIf
Return(aRet)