>This may be too simplistic, but wouldn't SET CARRY automatically give you a way to do this?
>
>>My boss ask me to make a method allow the user to copy the previous
>>orderline information to new order!
>...snip
but currently the orderline is showing the NewOrder wow....
In browse window, if env. setting CARRY = ON.
copy and replace the orderline.Order_no, that finish!
Okey, let me try to match both replies....
kick out lSelected fields.
* at txtORder_no.dblclick
If messagebox("Are you sure to copy this record to new order?",4+32,;
"Copy from Existing Order!") = 6
set carry on
append blank in Orderline
replace order_no with alltrim(thisform.txtOrder_no.value)
tableupdate(Orderline)
set carry off
endif
Then, ask user to change in the original grid and use confirm update!
Because if too much alternative method to replace value, the user will
confuse. For any changing on Orderline, back to the base grid to do!
Is it OKey?!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.