FOR lnNr = 1 TO 100 THISFORM.lbl.Caption = "Text " + TRANSFORM(m.lnNr) … do some processing... THISFORM.Draw() ENDFORTHISFORM.Refresh() && To update display value in controls that are bound to fields or variables using controlsource.
THISFORM.txt.ControlSource = "Customer.Firstname" REPLACE Firstname WITH "Test" IN Customer THISFORM.Refresh() && or selectivly: THISFORM.txt.Refresh()Very often Refresh() is being used where Draw() was actually meant. But Refresh() has no other effect except updating changed values in controlsources. So in the first example, THISFORM.Refresh() would not be correct.