Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Top Level Form
Message
From
31/12/2000 08:12:12
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00457084
Message ID:
00458178
Views:
17
Larry - got the email - Thanks!!!!

There were two differences which created the problem. I had a second pad on the menu bar which was a command which merely called form test1 'do form test1', which had the _screen.... code in the 'skip for'. I also did not have a txtbox which got focus through the init of the txtbox. By adding the txtbox and giving it focus the problem was resolved. Removing the txtbox from the form or commenting out the 'this.setfocus' command caused pad2 to give the error message ' thisform is not an object'.

The error message probably makes sense as it appears focus must be set in the top level form and without it the skip for clause can't be evaluated.

I really appreciate your help with this. Now I am going to tackle adding toolbars to a top level form. Need to do a little reading first.

Do you write most of your applications as top level form application or do you write them using the vfp screen?

Thanks greatly for your help. One thing about having to work through things like this is you won't forget how to do it. I think it is permanently etched in my brain.


Gaylen





>Since everything appears to be the same, I just sent youa copy of the files that worked me. Check them out if you want and let me know if they work for you.
>
>HTH.
>
>>Larry - Appreciate you hanging in there with me
>>I am using VFP7 SP4
>>
>>I reduced my application to a top level form and a top level menu named toplevel.mpr and one modal form which is configured as 1 - in top level.
>>
>>In the init of the toplevel form I have the following code
>> application.visible = .f.
>> do toplevel.mpr with this,.t.
>>
>>
>>In the menu I have one menu item which calls the modal form.
>>In the skip for field in the option dialog I have _screen.activeform.windowstate = 1
>>
>>When the form instaniates I get the error message "activeform is not an object.
>>
>>If I move the 'do toplevel.mpr with this,.t.' to the activate code I do not get the error message.
>>
>>Seem like we have the same thing - your works mine doesn't. The only thing different is application.visible = .f. Could that be the problem?
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform