Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2001
    Location
    Bremen - Germany
    Posts
    49

    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

  2. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    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]
    --[[ Indigo Rose Software Developer ]]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts