>I am not sure what I am doing wrong.
>
>I built a new form with one command button NOTHING ELSE
>
>on the command button click I put
>
>CLEAR
>DIR
>WAIT wind
>Form.refresh()
>
>
>The form does NOT refresh after I hit a key from the wait wind
>
>THe DIr command results stay on the screen (in the form) and thisform.refresh or form.refresh of form.refresh() seem to do nothing.
Apparently your SET TALK is ON, so you see the result of DIR command right in the active form.
You need to issue SET TALK OFF command when you load or initialise your form. Note that SET TALK command is scoped to current data session.
Also, you should use THISFORM.Refresh(), not the Form.Refresh()
Do you really want to direct the output of DIR command to the form? Check Help for SET TALK command to see more options for the output.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison