General information
Category:
Forms & Form designer
>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
As Paul said,
THISFORM.txtgst.VALUE = THISFORM.txtGstPercentage.VALUE * THISFORM.txtSales.VALUE in VALID method of txtSales will work. There is no reason why it wouldn't work.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only