By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,493 Members | 1,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,493 IT Pros & Developers. It's quick & easy.

modify code at run time

P: n/a
Hi All

is it possible to modify code at run time? I have a set of constants that
change at deployment (from development to deployment server and a few other
consts) I have a menu item that prepares the DB for deployment. It does a
few other things, re-links tables, tuns of shift key bypass etc.

But can I modify the code? do I need to use #if ?

thanks
Al
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Baldy wrote:
Hi All

is it possible to modify code at run time? I have a set of constants that
change at deployment (from development to deployment server and a few other
consts) I have a menu item that prepares the DB for deployment. It does a
few other things, re-links tables, tuns of shift key bypass etc.

But can I modify the code? do I need to use #if ?

thanks
Al


Code can be modified in an MDB at runtime using a module type variable
however, this can cause code and variables to be reset.

AFAIK to use #if it looks at constants declared with #const and the like
so for doing something based on say a setting in a table use a normal if.

--
Pretentious? Moi?
Nov 13 '05 #2

P: n/a
On Tue, 12 Oct 2004 23:00:33 +0930, "Baldy" <Jo**@smith.com> wrote:
Hi All

is it possible to modify code at run time? I have a set of constants that
change at deployment (from development to deployment server and a few other
consts) I have a menu item that prepares the DB for deployment. It does a
few other things, re-links tables, tuns of shift key bypass etc.

But can I modify the code? do I need to use #if ?

thanks
Al

#if is for conditional compilation. Without the concept of header
files it is not much use as you have to change the mdb file itself to
change the #consts. You could use it as a way of cutting out inline
debugging code at release.
David

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.