Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WindowType property error
Message
From
02/03/2000 19:57:42
 
 
To
02/03/2000 18:28:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00340926
Message ID:
00340974
Views:
21
>Hi All,
>
>I am getting a very unusual error during form init(). I'm using a popular framework and when a form is called in "ADD" mode the framework automatically sets the form WindowType Property to 1(modal) in the init() code. In 99.99% of the forms I have built, this works flawlessly.
>
>I have a couple of forms however that over the course of development have started choking on the line that sets the WindowType property. The error returned is "Property WINDOWTYPE is read-only". According to the on-line help, you cannot change the WindowType setting once the window has been displayed. This is what is strange, the form has NOT been displayed and has no dangling object references to it.
>
>During my diagnosis of this problem I have cold booted, gone directly to the offending form and run it. BOOM - error.
>
>I have recompiled all files, run the form. BOOM - error
>
>I have "used" the .scx excl and packed, run the form. BOOM - error
>
>I've restored prior versions from SourceSafe and rebuilt the missing pieces with success a couple of times, but that's not really a desireable option this time. So I'm asking for the guru's to help me out. What do you think is causing this and what else can I try?
>

Are you calling the SetFocus() method of any object on the form from the init?
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform