on tdatabase to inser ta a record I use
oElemento:=oElementi:record(.t.)
and to modify
oElemento:=oElementi:record()
How I can make to have a duplicate record to modify ?
oRec := oDbf:Record() // existing record
oRec:Copy()
oRec := oDbf:Record( .t. ) // new record to append
oRec:Paste()
oRec:Edit()
Function Editsetup(oDbf,nMode,oRec)
IF nMode==1 //add
oRec := oDbf:record(.t.)
Elseif nMode == 2 //mod
oRec := oDbf:record()
elseif nMode:= 3 //duplicate
oRec := oDbf:Record() // existing record
oRec:Copy()
oRec := oDbf:Record( .t. ) // new record to append
oRec:Paste()
//oRec:Edit()
Endif
return oRec
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot], Jimmy, Willi Quintana and 65 guests