Announcement

Collapse
No announcement yet.

Design Time Constants

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Design Time Constants

    When we create a new release of our product we need to automate the creation of a directory structure ie


    Project Settings\OutputFolder

    I:\ComReleases\projectx\#CurrentYear#\0#CurrentMon th#\#ISODate#

    What we need however is to create a Month directory like ....\01-Jan\...

    At present the #CurrentMonth# is a single digit ie 1 for Jan and 11 for November. To make this a double digit like the #CurrentMinute# is would enable the directory structure to be sorted in a logical manner.

    We fudged this by putting ..0#CurrentMonth# to give 01, but this would require changing after September.

    Is there a way of returning ..\01-Jan\.. to create the directory structure for us automatically without 'hard coding' it, or creating a Designtime constant for 'Jan' eyc which would require changing each month?

    Perhaps in a future release the #CurrentDay#, #CurrentHour#, #CurrentMonth# could be made two digit, and a new Constant #CurrentMonthText# to give a 3 letter month, would be invaluable to us.

    John

  • #2
    Re: Design Time Constants

    Couple suggestions:

    - why not just use I:\ComReleases\projectx\#ISODATE#\ for the directory structure? (The ISO date format was designed specifically for sorting...)

    - you could use a design-time constant for the 0, so you'd only have to change it in one place twice a year...something like I:\ComReleases\projectx\#CurrentYear#\#Padding##Cu rrentMonth#\#ISODate#, with #Padding# either set to 0 or empty.

    I'll put in a request for a few more design-time constants...I think Mark is currently working on some fixes for SF6 anyway.
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: Design Time Constants

      (You could also use #0# or #zero# instead of #Padding#...)
      --[[ Indigo Rose Software Developer ]]

      Comment

      Working...
      X