Text Box Update
Posted: Fri Mar 24, 2017 7:28 pm
Having trouble updating text box value.
I am in a window with a grid and some text boxes
to update the grid and text boxes i have a function as follows. The grid emptys but the text boxes do not refresh to zero.
there must be something I am missing to update the text boxes values.
if I put a message box at the bottom, the text boxes refresh
function prpr3()
FORM_GRID_IN2.GRID_2.itemcount := 0
FORM_GRID_IN2.Text_6.Value := 0
FORM_GRID_IN2.Text_7.Value := 0
FORM_GRID_IN2.Text_8.Value := 0
FORM_GRID_IN2.Text_9.Value := 0
FORM_GRID_IN2.Text_10.Value := 0
FORM_GRID_IN2.Text_12.Value := 0
FORM_GRID_IN2.Text_13.Value := 0
FORM_GRID_IN2.Text_14.Value := 0
FORM_GRID_IN2.Text_15.Value := 0
FORM_GRID_IN2.Text_16.Value := 0
FORM_GRID_IN2.Text_17.Value := 0
FORM_GRID_IN2.Text_18.Value := ''
FORM_GRID_IN2.Text_19.Value := 0
FORM_GRID_IN2.Text_20.Value := 0
FORM_GRID_IN2.Text_21.Value := 0
FORM_GRID_IN2.Text_22.Value := 0
FORM_GRID_IN2.Text_23.Value := 0
DO EVENTS // added and now works as Pablo suggested.
RETURN
I updated this function for others to view. This works
Thanks Franco
I am in a window with a grid and some text boxes
to update the grid and text boxes i have a function as follows. The grid emptys but the text boxes do not refresh to zero.
there must be something I am missing to update the text boxes values.
if I put a message box at the bottom, the text boxes refresh
function prpr3()
FORM_GRID_IN2.GRID_2.itemcount := 0
FORM_GRID_IN2.Text_6.Value := 0
FORM_GRID_IN2.Text_7.Value := 0
FORM_GRID_IN2.Text_8.Value := 0
FORM_GRID_IN2.Text_9.Value := 0
FORM_GRID_IN2.Text_10.Value := 0
FORM_GRID_IN2.Text_12.Value := 0
FORM_GRID_IN2.Text_13.Value := 0
FORM_GRID_IN2.Text_14.Value := 0
FORM_GRID_IN2.Text_15.Value := 0
FORM_GRID_IN2.Text_16.Value := 0
FORM_GRID_IN2.Text_17.Value := 0
FORM_GRID_IN2.Text_18.Value := ''
FORM_GRID_IN2.Text_19.Value := 0
FORM_GRID_IN2.Text_20.Value := 0
FORM_GRID_IN2.Text_21.Value := 0
FORM_GRID_IN2.Text_22.Value := 0
FORM_GRID_IN2.Text_23.Value := 0
DO EVENTS // added and now works as Pablo suggested.
RETURN
I updated this function for others to view. This works
Thanks Franco