>I'm very new to VFP 5.0.
>Can anyone help me on this:
>
>I have 2 textbox. txtSales and txtGst
>
>1. My intention was to key in the sale figures into "txtsales". When the users press enter after keying the sales figures, I want to do some background caculation and display in "txtgst" textbox without user keying. Can anybody show me how?
>
>Many thanks.
>
>
>From Samuel Chan
Hi Samuel.
There are several ways you can do this one of them would be:
In the valid event of txtsales:
here you would do all your calculations and the result should be the value of
txtgst.
e.g.
sum all (whatever) to total
txtgst.value = total
thisform.txtgst.refresh()
as I said this is just one way of doing this.
I hope it helps.