Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding properties and methods.
Message
From
18/01/2006 13:15:12
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
18/01/2006 13:07:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01087772
Message ID:
01088098
Views:
10
>>>>Great explanation, Dan. Thank you! That makes things much clearer. I didn't think about the fact that once a control is placed on a form, it becomes an instance.
>>>>
>>>it is not true.
>>
>>But it behaves like one, in the sense that any custom methods or properties you add to it will not be persisted. They get lost.
>
>Fact that an airplane flies doesn't mean that it is a bird :)

Um, I have a correction here. I've added a property to a commandbutton on a form, and saved it. The property isn't seen on the PEM sheet, but it's still in the .properties memo in the commandbutton's record in the .vcx - it's that the new property isn't listed in the Reserved3 field. Adding it there manually didn't really help (maybe I should have compiled the class immediately after that). Anyway,as soon as I edited anything on the control (moved it one pixel left, then one right) and saved the class, the new property vanished from the .properties memo as well.

So, while this may be theoretically feasible to accomplish (i.e. we may find a hack which would do it), any such locally defined PEMs are about to vanish at any point, which makes their use good only for frustration addicts.

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