I state I can not use an xbrowse to get the record so I have to search the archive first before to make the modify
I select an obtn where I save a cargo with many info
local cNumPre :=oBtn:cargo[28]
//open the database and order on Invoice number
oReserva:=Tdatabase():Open(,::cDbfPath + "Reserva" ,"DBFCDX", .t.)
oReserva:setOrder("res_pre" ) // field invoice ( string 16 cr)
nInvoice:= ALLTRIM(cNumPre) I havethis infor from oBtn:cargo
If oReserva:seek(nInvoice) //search
//here i must create the record
oPrenota:= :=oReserva:record() // it is sure I stay on the same record of the invoice ?
else
Msginfo("invoice not found")
return nil
Endif
I tried and allway return error not found
I select an obtn where I save a cargo with many info
local cNumPre :=oBtn:cargo[28]
//open the database and order on Invoice number
oReserva:=Tdatabase():Open(,::cDbfPath + "Reserva" ,"DBFCDX", .t.)
oReserva:setOrder("res_pre" ) // field invoice ( string 16 cr)
nInvoice:= ALLTRIM(cNumPre) I havethis infor from oBtn:cargo
If oReserva:seek(nInvoice) //search
//here i must create the record
oPrenota:= :=oReserva:record() // it is sure I stay on the same record of the invoice ?
else
Msginfo("invoice not found")
return nil
Endif
I tried and allway return error not found
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

