>i put an small image in my form to act as a button
>in click method i wrote
>
>IF WEXIST('opening')
> ACTIVATE WINDOW opening
> ELSE
> DO FORM opening
>ENDIF
>
>i click the image sometimes ok but
>sometime
>WEXIST('opening') return .t.
>actually it is not
>and no form is activate
>why ?
>how to make it 100% ok ?
It's better to check if specific Form object exists (e.g. by going through _Screen.Forms collection) and if yes then issue oForm.Show
Edward Pikman
Independent Consultant