PDA

View Full Version : Having trouble using Script: System.GetDate


ajy0903
02-16-2009, 01:42 PM
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
02-16-2009, 03:13 PM
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

ajy0903
02-16-2009, 04:54 PM
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.

Dermot
02-16-2009, 05:57 PM
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.

result = System.GetDate(DATE_FMT_US);
Label.SetText("Label1", result)

Obviously change the label name to the name of your label.

ajy0903
02-16-2009, 08:42 PM
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.

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.