I have been asked to change a program used in Foxpro 6.0 but clearly written in an earlier version. It contains the following code which displays some fields from a table, and allows one field (goods_in) only to be edited. I need to make the cost_price editable as well, but it seems I cannot use the FREEZE option for two fields. How can I allow the TWO fields to be edited, but none of the others?
A follow-up question: if cost_price can be changed, would the calculated field "totcost" be automatically updated?
BROWSE LAST NORMAL NOAPPEND NODELETE NOMENU TITLE "Suggested Orders" ;
FIELDS ;
supplier:18, ;
part_no:12 :H = 'Our Part', ;
sup_part:12 :H = 'Their Part', ;
desc:25 :H = 'Description', ;
stock:8, ;
on_order:8 :H = 'Ordered', ;
min_stock:7 :H = 'Min', ;
max_stock:7 :H = 'Max', ;
goods_in:8:H='Suggest':v=goods_in>-1:E='Suggestion Less Than Zero',;
cost_price:10 :H = 'Unit Cost', ;
totcost = goods_in*cost_price:10 :H = 'Total' ;
FREEZE goods_in
RETURN
Thanks in advance.
A follow-up question: if cost_price can be changed, would the calculated field "totcost" be automatically updated?
BROWSE LAST NORMAL NOAPPEND NODELETE NOMENU TITLE "Suggested Orders" ;
FIELDS ;
supplier:18, ;
part_no:12 :H = 'Our Part', ;
sup_part:12 :H = 'Their Part', ;
desc:25 :H = 'Description', ;
stock:8, ;
on_order:8 :H = 'Ordered', ;
min_stock:7 :H = 'Min', ;
max_stock:7 :H = 'Max', ;
goods_in:8:H='Suggest':v=goods_in>-1:E='Suggestion Less Than Zero',;
cost_price:10 :H = 'Unit Cost', ;
totcost = goods_in*cost_price:10 :H = 'Total' ;
FREEZE goods_in
RETURN
Thanks in advance.