Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object class is invalid for this container
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00890965
Message ID:
00891171
Views:
31
Ron,

So have you changed the location the location of udc_classes.vcx relative to the form? Have you deleted or renamed the class udclabel in that classlib? Can you open up the udclabel class itself for editting?

There is no problem having objects with the same name as long as their fully qualified containership names are different. So every page on your pageframe can a label called udclabel6 without any problem. For example when you create a grid with a set number of columns, every textbox gets named text1.

What about your page and/or pageframe are they subclasses?

>The deletions were all done from within the form designer. I have browsed the .scx
>file opened with USE, and the contents of the memo fields you describe appear
>kosher, correct names, etc. There does appear to be common thread, though, and that is a label object seems to always be imlicated, e.g. right now in the most recently corrupted .scx:
> class = udclabel
> classloc = ..\..\..\stds\classes\udc_classes.vcx
> baseclass = label
> objname = Udclabel6
> parent = FRMRECRUITDATA.pgfRecruitQuest.pagPage1
> properties =
> FontBold = .T.
> Caption = "Recruiter"
> Left = 3
> Top = 2
> TabIndex = 1
> Name = "Udclabel6"
>So I am wondering if somehow there a problem with the subclassing of the label
>class as udcclass (the udc is my prefix to indicate a user defined class).
>
>But of course there are labels everywhere on every form and page in my apps. It
>is also curious and coincidental, however, that "udclabel6" always seems to
>be the object referenced when this occurs, not some other label. I wonder if
>there could be a conflict if on multiple pages multiple instances of the same
>named label are somehow colliding? But there again, I have that in forms and
>have had for ages, since moving to VFP 6.0 years ago when it came out.

> resistentialism (ri-zis-TEN-shul-iz-um) noun

*g* I've cursed at my computer a time or two myself.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform