Hi All,
How do I determine if RecordSet has been modified?
I am directly modifying oRs:field using GET or this is not the right approach?
aModifed := oRs:ModiCols()
xbrowser aModified
oRs := oCn:customer // we can quickly open a table like this also.
oRs:Edit() // to edit current record
oRs:Edit( .t. ) // to append a new record
oRs := oCn:customer
oRs:bEdit := { |oRec| MyEditDialog( oRec ) }
oRs:Edit()
....
...
function MyEditDialog( oRec )
local lNew := oRec:RecNo == 0
local oDlg
DEFINE DIALOG oDlg ........
<all your gets here>
ACTIVATE DIALOG oDlg
return nil
...
oRs:bEdit := { |oRec| MyEditDialog( oRec ) }
oRs:Edit()
...
As for oRs:Save(), which I directly edit oRs:field, use of oRec = oRs:Record() is most logical and safer.. I will revise my coding.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: cmsoft and 91 guests