Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop class on form and execute code
Message
From
15/01/2001 16:54:08
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00463901
Message ID:
00463963
Views:
15
>>>Does anybody know of a way to drop a class on a form and have code (like a builder) execute immediately? TIA
>>
>>Not immediately. But you can make a form builder that (between other features), let you drop a form, and execute any post-drop event given the class you choose.
>>
>>Just an idea.
>>
>>We had control events, project events, now (in VFP7) database events. Could we ask for editor events (beyond intellisense) for VFP8? Well, maybe we can get'em in VFP7...
>>
>>As I see it, it's the kind of things that the team has promptly added, maybe...
>
>What I'm looking for is to be able to automatically run the builder for a class, without the user having to remeber to drop the class, right click, and choose builder. Just trying to automate some things, that's all, so nobody "forgets" to run the builder.

Yes, I understood. I tried to do this, also. What I finally ended doing was to add more code to this classes and more documentation in the properties to avoid the need of using a builder, but I know that this is not always possible.

That's why I though about a form builder to handle the insertion of that kind of classes. Perhaps is easier to get accustomed to always use such a builder (instead of going to the toolbar, switch class libraries, select and drop the one you need, then restoring the toolbar) to drop SOME kind of classes.

Just an idea. I didn't really implemented it.

If you find a more elegant approach (it should have one), please let me know.

Good luck.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform