I'm sure this is one of the really easy things to do and somebody here could readily point out the correct method of doing this.
I'm trying to check for the existence of a second form (search) on the screen upon destroying another form, so in the destroy method of form1 I put the following:
FOR i = 1 TO _screen.ControlCount
IF UPPER(ALLTRIM(_screen.forms[i].name)) = 'SEARCH'
_screen.forms[i].DESTROY()
ENDIF
ENDFOR
This doesn't work. How can I achieve the desired result?
Thanks in advance!
Andrew
On a CLEAR day you can see forever.