Create a property on the form for the value of the textbox. Set the initial value of the textbox to "" if it is character, etc. Then use NAME clause when opening your form and give your form a variable name (like oform, etc) and then reference the controls on the form using the form's variable name. Here is an example where the form has one textbox named text1 and its control source is the property thisform.oname:
DO form testobjects NAME oform
oform.oname="Smith"
oform.text1.refresh()
>Hello
>
>I have top level form with 3 text box and when i update the master table from the top level menu the text box doesn't get refreshed.control source for text box is memory variable.
>
>i have to close and reopen the top level form to display correct data.
>
>so if i create property in top level form for the three values, can i update that from my .prg which updates the values.if so how ?
>
>will thisform.text1.value=m.value1 work from prg ?
>
>txs
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"