%JulianDate%

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Bruce
    Indigo Rose Customer
    • Jun 2001
    • 2133

    %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
  • TJ_Tigger
    Indigo Rose Customer
    • Sep 2002
    • 3159

    #2
    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

    Comment

    • Bruce
      Indigo Rose Customer
      • Jun 2001
      • 2133

      #3
      Re: %JulianDate%

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

      Comment

      • bobohearn
        Indigo Rose Customer
        • May 2003
        • 22

        #4
        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

        Comment

        • Bruce
          Indigo Rose Customer
          • Jun 2001
          • 2133

          #5
          Re: %JulianDate%

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

          Comment

          • Derek
            Indigo Rose Customer
            • May 2001
            • 1254

            #6
            Re: %JulianDate%

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

            -
            = Derek
            ["All glory comes from daring to begin" - fortune cookie]

            Comment

            • bobohearn
              Indigo Rose Customer
              • May 2003
              • 22

              #7
              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?

              Comment

              • Bruce
                Indigo Rose Customer
                • Jun 2001
                • 2133

                #8
                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.

                Comment

                • bobohearn
                  Indigo Rose Customer
                  • May 2003
                  • 22

                  #9
                  Re: %JulianDate%

                  Fantastic! Thanks so much, Bruce.

                  Comment

                  • Corey
                    Indigo Rose Staff Alumni
                    • Aug 2002
                    • 9741

                    #10
                    Re: %JulianDate%

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

                    Corey Milner
                    Creative Director, Indigo Rose Software

                    Comment

                    • Bruce
                      Indigo Rose Customer
                      • Jun 2001
                      • 2133

                      #11
                      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) :-)

                      Comment

                      • Corey
                        Indigo Rose Staff Alumni
                        • Aug 2002
                        • 9741

                        #12
                        Re: %JulianDate%

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

                        Corey Milner
                        Creative Director, Indigo Rose Software

                        Comment

                        Working...
                        X