nageswaragunupudi wrote:Mr. Silvio
I modified the test.prg sent by you.
Please try this.
I am sure the results are correct.
Nages,
I thank you , I tried your sample with an empty dbf and run ok
BUT
instead of the xbrowse I have a planning beach where I have placed all the elements to rent
I have a beach planning where I have many btnbmps and I open the dialog of edit from each buttons
I had created that test.prg just to understand the problem and why the isfree function with lookup made a mistake
from the planning beach I press a button with the mouse (btnbmp) and open the dialog for entering or modifying the reservation
in each btnbmp I have saved some information in cargo such as the INVOICE reservation number
So I cannot open function Edit_Reservation( oRec )
because I not have oRec
on my function of edit reservation I have
oPrenotazioni := TReserva():New()
oRecPrenota:=oPrenotazioni:record(.t.) // for add new
oRecPrenota:=oPrenotazioni:record() // for the edit
how do i use your method by calling it from the button ( btnbmp) ?