ProgrammaticChange Method
Object:orderentry.txtDiscountPerc
Expand/Collapse source code of procedure txtDiscountPerc.ProgrammaticChange Source Code
*-- Calculate the discount value based on discount percent
LOCAL lnTemp

IF this.Value > 0
  lnTemp = ;
    thisform.txtSubTotal.Value * ;
    (this.Value / 100)
  thisform.txtDiscount.Value = lnTemp
ELSE
  thisform.txtDiscount.Value = 0
ENDIF