>Hi Jim,
>
>In one of my application Modal form calls non-modal form and works fine...
>This is exact syntax:
>
>IF TYPE("oChForm2")="O" AND NOT ISNULL(oChForm2) AND NOT oChForm2.Visible
> oChForm2.Show()
> ELSE
> DO FORM ChangeStreets WITH THISFORM.DATASESSIONID
> ENDIF
>
>
>where oChForm2 is a private variable, defined in the main program
>
>>>>Nope, when I do it Form A will run (modal) Form B (non-modal) comes up behind Form A and I cannot click into Form B from Form A.
>>>
>>>Hmm, what code did you use, I used a single command button with only one line in it:
>>>
>>>
DO FORM NonModalForm
>>
>>Me too! I'm using VFP 6 SP3
Dear Nadya,
this is shorter:
TYPE("oChForm2.name")="C"
instead of
TYPE("oChForm2")="O" AND NOT ISNULL(oChForm2)
bb