m.a = "Waa" m.b = "Zoo" o1 = createobject("form1") o1.show on key label esc clear events read events on key label esc define class form1 AS form add object txt1 as textbox with ; controlsource = "m.a + m.b" add object cmd1 as commandbutton with ; left = 100, caption = "Clear" add object cmd2 as commandbutton with ; left = 100, top = 30, caption = "Refresh" proc cmd1.click for each m.o_ctl in thisform.controls if upper(m.o_ctl.class) = "TEXTBOX" m.o_ctl.value = space(len(transform(m.o_ctl.value,""))) endif next proc cmd2.click thisform.refresh() thisform.draw() enddefine>I have never been able to do that. It always returns "the data source for this object must be a variable reference.'