Having trouble using Script: System.GetDate

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ajy0903
    Forum Member
    • Aug 2007
    • 26

    Having trouble using Script: System.GetDate

    Hello.
    I was having trouble using the "System.GetDate" action in the Script.
    I read the help file and I added that action to scrip.
    I saved it and built it as email/web executables.
    And I ran, but, it does't show me current system date?
    How do I use these fuctions/script/action?
    Please tell me detailed description.
  • Ulrich
    Indigo Rose Staff Member
    • Apr 2005
    • 5131

    #2
    Originally posted by ajy0903 View Post
    Hello.
    I was having trouble using the "System.GetDate" action in the Script.
    I read the help file and I added that action to scrip.
    I saved it and built it as email/web executables.
    Hello.

    Did it work during the Preview?

    And I ran, but, it does't show me current system date?
    So what did you see instead? Wrong data, a syntax error message...?

    How do I use these fuctions/script/action?
    Please tell me detailed description.
    Please post your exported project or your code here and it will become much easier to help you.

    Ulrich

    Comment

    • ajy0903
      Forum Member
      • Aug 2007
      • 26

      #3
      Originally posted by upeters View Post
      Hello.

      Did it work during the Preview?



      So what did you see instead? Wrong data, a syntax error message...?



      Please post your exported project or your code here and it will become much easier to help you.

      Ulrich
      1. It didn't work in Preview.
      2. I saw nothing. It just Previewd fine and built as Web/Email executable
      fine. No wrong data or no syntax error message.
      3. Here is my exported project.
      Attached Files
      Last edited by ajy0903; 02-16-2009, 05:06 PM.

      Comment

      • Dermot
        Indigo Rose Customer
        • Apr 2004
        • 1791

        #4
        You really need to read the help file. You assigned the current date to a variable named result and that is it. You never actually told the program where to display it. Where did you think it was going to display? Where do you want it to display? You need to create a label and set it's text to the current date.

        Code:
        result = System.GetDate(DATE_FMT_US);
        Label.SetText("Label1", result)
        Obviously change the label name to the name of your label.
        Dermot

        I am so out of here :yes

        Comment

        • ajy0903
          Forum Member
          • Aug 2007
          • 26

          #5
          Originally posted by Dermot View Post
          You really need to read the help file. You assigned the current date to a variable named result and that is it. You never actually told the program where to display it. Where did you think it was going to display? Where do you want it to display? You need to create a label and set it's text to the current date.

          Code:
          result = System.GetDate(DATE_FMT_US);
          Label.SetText("Label1", result)
          Obviously change the label name to the name of your label.
          Oh.
          Thanks!!!!!!
          This was my 3rd day trying to using it.

          Comment

          Working...
          X