>Following code part raises a "cannot change modality of visible form" error, because of setfocus method change visibility of the form from hide to visible. To solve this problem I manually change the form to hide mode manually. Is there any alternative way to fix this problem.
>
>Best regards
>
>Ali Altun
>
>
>do form "form1.scx" name oMyForm noshow
>oMyForm.text1.setfocus()
>** oMyForm.hide = .T.
>oMyForm.show(1)
>
do form "form1.scx" name oMyForm noshow
oMyForm.text1.tabindex = 1
oMyForm.show(1)
Cetin