Announcement

Collapse
No announcement yet.

Want nested design-time constant definitions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lorne
    replied
    Re: Want nested design-time constant definitions

    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 [img]/ubbthreads/images/icons/smile.gif[/img] 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]

    Leave a comment:


  • HayoOellrich
    started a topic Want nested design-time constant definitions

    Want nested design-time constant definitions

    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
Working...
X