Article ID: 162256
Article Last Modified on 10/15/2003
Grid1.TextBox1.InputMask = 9999.99 Grid1.TextBox2.InputMask = 9999.99
***** Table setup for TEST *****
CREATE TABLE 'test.dbf' ;
(DISCOUNT N(10, 2) NOT NULL, ;
AMOUNT N(10, 2) NOT NULL, ;
OTHER N(10, 2) NOT NULL)
***** Add two records for testing *****
INSERT INTO test (DISCOUNT, AMOUNT, OTHER) ;
VALUES (7.00, 4.00, 0.00)
INSERT INTO test (DISCOUNT, AMOUNT, OTHER) ;
VALUES (9.00, 15.00, 10.00)
Grid1.ColumnCount = 2
Column1.ControlSource = test.discount
Header1.Caption = "Discount" (without the quotes)
Column2.ControlSource = test.amount
Column2.Header1.Caption = "Amount" (without the quotes)
Label1.Caption = "Value"
Label2.Caption = "IsZero?"
Label3.Caption = "Field"
Text1.Name = txtNewValue
Text2.Name = txtZero
Text3.Name = txtNewField
THISFORM.txtNewvalue.Value = THIS.Value
IF THIS.Value = 0
THISFORM.txtZero.Value = "Yes"
ELSE
THISFORM.txtZero.Value = "No"
ENDIF
THISFORM.txtNewField.Value = test.discount
THISFORM.txtNewvalue.Value = THIS.Value
IF THIS.Value = 0
THISFORM.txtZero.Value = "Yes"
ELSE
THISFORM.txtZero.Value = "No"
ENDIF
THISFORM.txtNewField.Value = test.amount
Keywords: kbbug kbfix KB162256