|
|
Changing code at run-time
Import the xpo file for this project into version 3- SP3 system.
A question that keeps on coming up from time to time is "How do I change code at runtime". Well.... before reading further, scroll down to the bottom of the page and take the disclaimer very very seriously *s* Basically you can achieve this in multiple ways. Your imagination is the limit. For e.g. You could update a field of type FreeTxt in a table and then reference this field with runbuf method. Or you can put a macro reference in the code and change the macro at run time (at least you are not changing class at run time) or just change the class at run time. The downloadable xpo file will show you how to do this. Please use this project for testing/learning only. This logic should never ever be used on a live site. There are just too many problems associated with changing code at run-time. If you have a scenario where you think there is no option but to change code at runtime then do drop me an email I may be able to come up with an alternative solutions. One time, I have even implemented tablemap to get around this problem. Now you will probably ask me how is tablemap an alternative to changing code at runtime. My answer is ..your imagination is the limit. I will put a project later explaining how to use tablemap to achieve the effect of change in code at runtime. cheers! |
Send mail to harry@systomatics.com with questions or comments about this web site.Disclaimer: I am working with Microsoft Business Solutions. The code on this site may or may not be related to my official duties with Microsoft. I do not claim in any expertise in modules represented on this website. Essentially there is just one person doing functional specifications (in head), design specifications (in head), coding and some testing. There is no way the project on this site will be free of bugs. The projects are intended as guidelines and may god help you if you decide to implement the projects without making any changes. If you implement any project resulting into data corruption or anything like that then do not even think of suing me because a. I have already warned you and b. I don't have any money. I may or may not respond to your emails about supporting the project. I may or may not upgrade the projects to the next service pack / version. |