PDA

View Full Version : Want nested design-time constant definitions


HayoOellrich
05-22-2002, 06:19 AM
Hi !

When using design-time constants, then there is often the need to store parts of constants on its own. I do not want to enter the same data more than once, because this could cause errors.

Lets look at a simple sample:

I store filename and its path in 2 constants:

#filename_nopath# = "data.txt"
#netdirectory# = "\\nt0002\publicshare"

Now I also may need the complete filename, so it would be nice to have:

#file# = #netdirectory# \#filename_nopath#

Currently, such constructs are not supported (in 6.0.1.0).

Hayo

Lorne
05-22-2002, 09:56 AM
Yep. That was done to prevent nasty, nasty circular references from being possible.

I've wanted to do the same thing myself from time to time /ubbthreads/images/icons/smile.gif but...there are two workarounds:

<ol type="1"> just use the two original constants everywhere
use a variable instead (i.e. %file% instead of #file#)
[/list=a]