i have converted my code :
i placed code as below
in load event :
cursorsetprop("buffering",5,'inward')
cursorsetprop("buffering",5,'inward1')
in "ADD" command button
sele inward
** single records in this parent table, but i am using table buffering because if my record pointer move to next records it update the record to table so i am not using row buffering.
appe blank
repl reco1 with str(recno)+str(seconds(),10,3)
go recno()
sele inward1
appe blank
repl reco1 with inward.reco1
go recno()
in "SAVE" command button
sele inward
tableupdate(.f.,.t.)
sele inward1
tableupdate(.t.,.t.)
after saving first invoice, if i add one more invoice by cliking on "ADD" button
sele inward
appe blank
repl reco1 with str(recno)+str(seconds(),10,3)
it is showing me record no -2, but after tableupdate(.f.,.t.) it should be -1
should i use like :
sele inward
tableupdate(.t.,.t.)
warm regards,
mk.