>>>>>I have a wait statment that appears after I execute a form that's called from another form.
>>>>>If I run them independantly, no wait statment appears, but if I run it as part of the main form, it appears!
>>>>>I have looked at my code and cannot find the culprit. Any suggestions?
>>>>
>>>>Search your code for inkey() function somewhere.
>>>
>>>I don use inkey, but it's not there either. both forms are based on generic FORMS class.
>>
>>Ok, what is the code what calls the form from another form?
>>
>>Press any key to continue sounds indeed as 'wait' or inkey() stuff. Try using code reference and search the project for both of them.
>
>
>IF THISFORM.OPTIONGROUP1.VALUE=8
>DO FORM visa
>ENDI
>
>Other options in the optiongroup call other forms, but there is no wait statement experienced.
Any "wait clear", "keyb[oard]", simulation of a mouseclick... can set the "you're done waiting" state.
Try to change your wait command to "wait ... window nowait" and then it should stay there until you issue a wait clear, for which you can decide when.