Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optiongroup class 'is class member' problem
Message
From
01/05/2009 20:14:14
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01397514
Message ID:
01397568
Views:
45
>>>>I created optionGroup class with 3 Options.
>>>>In a table I associated an integer column with that optionGroup.
>>>>When I drop the field on a Form from the table in the dataenvironment I get the warning "member xyz is a member class"
>>>>
>>>>But if I change the Option number in the class from 3 to 2 it works without problem.
>>>>
>>>>What causing that error?
>>>
>>>I don't think it's a good idea to associate a field with some class when you design your table /database. Can you remove the mapping in table designer and see if the error goes away?
>>
>>I don't understand why it is a bad idea. I use it all the time.
>>It works perfect with 2 Options but give me that error with 3 Options.
>
>Ok, just for this one then remove it. I personally don't use the field mappings, but I'm not sure if I can quickly figure out why it is really a bad idea to use them, may be someone else can chime in.

I have a hunch that, since the buttons are not the baseclass buttons, it needs the classlib where they are defined. Set Classlib or Set Procedure to where they are defined and then it may open.

I also haven't used memberclass much - by the time it appeared I had my ways of adding members. This much I know that at some situations it may cause minor headaches, and in some of them having the classlib/procedure open solves the problem. Note that I mention "some" twice - that means I don't know when and why.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform