Mr. Rao,
hago un query, y el datarow es ! lreadonly, hago un requery y el que obtengo es lreadonly, por qué?
Saludos.
cSQL := "SELECT * from USERINFO order by USERID"
oRsUSER := TOleAuto():New( "ADODB.Recordset" )
oRsUSER:CursorType := 1 // opendkeyset
oRsUSER:CursorLocation := 3 // local cache
oRsUSER:LockType := 3 // lockoportunistic
TRY
oRsUSER:Open( cSQL,xConnect )
CATCH oErr
MsgInfo( "Error in Opening USERINFO table" )
RETURN(.F.)
END TRY
#include "fivewin.ch"
function Main()
local oCn, oRs
oCn := FW_DemoDB()
oRs := oCn:RowSet( "select * from customer" )
? oRs:lReadOnly // --> .f.
oRs:Requery()
? oRs:lReadOnly // --> .f.
oRs:Requery( "select * from states" ) // Here is the problem. Bug
? oRs:lReadOnly // --> .t. // Should be .f. but it is .t.
oRs:Close()
oCn:Close()
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 60 guests