Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 12 of 12

Thread: %JulianDate%

  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Grin %JulianDate%

    Does this look right? I would like to dump after 15 days.

    %JulianDate% = System.GetDateTime ( "Date", "Julian Date")
    %DaysSinceBuilt% = Evaluate (%JulianDate% - #JulianDate#)
    IF (%DaysSinceBuilt% >= 15)
    %Result% = Dialog.MessageBox ("OOPS!", "This CD Has Now Expired! Plea...", Ok, Stop)
    Application.Exit
    END IF

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    Re: %JulianDate%

    Unless I am mistaken, this will dump 15 days after build time, not the first time they run the app
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Re: %JulianDate%

    Right! [img]/ubbthreads/images/icons/smile.gif[/img]

  4. #4
    Join Date
    May 2003
    Location
    Mass
    Posts
    22

    Re: %JulianDate%

    Bruce, I am very intersetd in having a cd expire in a certain amount of time. At least the interface will,right?. Could you tell me how to insert this information and where, I am not real familiar with code and variables. Thanks

  5. #5
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Re: %JulianDate%

    Sure I'll try to slap it up on Monday. :-)

  6. #6
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244

    Re: %JulianDate%

    You can read about this in detail in the Knowledge Base:

    http://www.indigorose.com/ubbthreads...o=0&fpart=
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  7. #7
    Join Date
    May 2003
    Location
    Mass
    Posts
    22

    Re: %JulianDate%

    Derek, I read the information I just have no clue where to put it. I got to the projects "On Initiliaze" section but ran out of gas there. I think if I can figure this out a lot of other mysteries will unfold. Any chances of a step by step?

  8. #8
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Re: %JulianDate%

    bob-

    <IR_ACTIONS_LIST>
    <Action name="Get Date Time">
    <Type>139</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%JulianDate%</Variable>
    <ReturnType>0</ReturnType>
    <Date>3</Date>
    <Time>0</Time>
    </Action>
    <Action name="Set Value">
    <Type>6</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%DaysSinceBuilt%</Variable>
    <Value>%JulianDate% - #JulianDate#</Value>
    <Evaluate>1</Evaluate>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%DaysSinceBuilt% &amp;gt;= 15</Condition>
    </Action>
    <Action name="Message Box">
    <Type>5</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <DialogTitle>OOPS!</DialogTitle>
    <DialogMessage>The Time On This CD Has Expired!</DialogMessage>
    <Icon>4</Icon>
    <Variable>%Result%</Variable>
    <DialogType>0</DialogType>
    <DefaultButton>0</DefaultButton>
    </Action>
    <Action name="Exit">
    <Type>2</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="END IF">
    <Type>201</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    </IR_ACTIONS_LIST>

    Try this, you'll need to change the amount of days it allows and the message the end user gets.

  9. #9
    Join Date
    May 2003
    Location
    Mass
    Posts
    22

    Re: %JulianDate%

    Fantastic! Thanks so much, Bruce.

  10. #10
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: %JulianDate%

    The Dancing Banana strikes again. 1-800-how's-my-dancing.

    Corey Milner
    Creative Director, Indigo Rose Software

  11. #11
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Wink Re: %JulianDate%

    Bob-
    B.T.W. Derek was right in referring you to that thread...Read it again S L O W L Y LOL I do a lot of that! It's that or the good folks at the Rose will give ya a hard time (Like Corey) :-)

  12. #12
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: %JulianDate%

    Da-nuh... Da-nuh... [suspense music from "Jaws"]

    Corey Milner
    Creative Director, Indigo Rose Software

Posting Permissions

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