Erik,
I think you're looking at wrong place. If there is a read events somewhere after this call, oForm.Show shows the form. Check for other causes form is flashing and hiding (releasing ?)
On Key Label 'F5' clear events
oFrm1 = CreateObject('myForm1')
oFrm1.Show
oFrm2 = CreateObject('myForm2')
oFrm2.Show
oFrm3 = CreateObject('myForm3')
oFrm3.Show
oFrm4 = CreateObject('myForm4')
oFrm4.Show
oFrm2.Show
Read events
Define Class myForm1 as Form
Caption = 'Form no 1'
EndDefine
Define Class myForm2 as Form
Caption = 'Form no 2'
Left = 100
Top = 100
EndDefine
Define Class myForm3 as Form
Caption = 'Form no 3'
Left = 200
Top = 200
EndDefine
Define Class myForm4 as Form
Caption = 'Form no 4'
Left = 300
Top = 300
EndDefine
Cetin
>because i already have my first READ EVENTS in my main program. the READ EVENTS in the following statement will not show "myform1":
>myform1 = newobject('clsform','classprg.fxp')
>myform1.show()
>READ EVENTS && the form just flashes (show up then hide immediately)
>erik
>
>>I'm not sure I understand. Yes a second read events doesn't have any effect.
>>oForm.Show shows the form. You could supply parameters to Show to make it >behave as modal oForm.Show(1)
>>Cetin
>
>>>cetin,
>>>i have one READ EVENTS in my main program, it begins a "listening" routine and continues until it sees a CLEAR EVENTS. the READ EVENTS is in the main program after the user logs in and the CLEAR EVENTS is on the toolbar's exit button. i understand that any READ EVENTS encountered while there is one already active has no effect:
>>>
>>>myform1 = newobject('clsform','classprg.fxp')
>>>myform1.show()
>>>read events && will have no effect
>>>
>>>how do we make our myform1 to show up? or how do we make the main program to pass the 'listening' on our second READ EVENTS, then after we close the myform1, the listening comes back to the main program?
>>>
>>>* it should not be modal :)
>>>
>>>erik
>>>
>>>
>
>>>>myform1 = newobject('clsform','classprg.fxp')
>>>>myform1.show()
>>>>read events && Don't forget to have a clear events (exit button, >>>queryunload ...)
>>>>
>>>>Cetin