Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form disappearing under another form
Message
From
27/10/1998 09:49:06
 
 
To
27/10/1998 09:40:06
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00150735
Message ID:
00150927
Views:
21
>>>>>I also tried that! no luck... It seems to only work from the form1's valid on the first field. Driving me crazy :{!
>>>>
>>>>I think Daniel's right, something is running later...you can try running through debugger to determine what...also, possibly you're doing something that dis-orders the usual firing sequence, I've done that myself :)
>>>
>>>I have put the code
>>> IF WEXIST("frmBuchhilfe")
>>> _Screen.frmBuchhilfe.Show()
>>> ENDIF
>>>in the form1 activate but get an error on the _screen line. frmBuchhilfe is the form.name of form3 which is really buchhilf.scx. It recognizes that the form exists but I don't have the correct syntax to show it apparantly.
>>>
>>>Unfortunately, this system is huge and I inherited it for a few weeks to solve some bugs, do some updates, etc so tracing things is very time-consuming!
>>>
>>>Help again?
>>>
>>>Sally
>>
>>What's the error message, then?
>
>Unknown member frmBuchhilfe. I get the same error if I use _screen.buchhilf.show().

Yes, I remember having the exact same problem few weeks ago. I worked my way around it by using CREATEOBJECT() instead of DO FORM in calling the next form. By the way, it is form.name you should use in the syntax, not .scx name.
If you want, you can do it like that yourself.
PUBLIC poForm
* DO FORM... Commented
poForm = CREATEOBJECT(yourForm, < maybe some parameters, if you have them > )
poForm.Show(1)  %% Modal or
poForm.Show(2)  %% Modeless

RELEASE poForm
Danijel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform