Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6380 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm using Set Variable to set date boundaries for a find I'm performing but I'm having problems incrementing the date by this method.


Set Variable [$Week Start; Value:$Week End + 1]

Where $Week End is a date

If I don't include the "+1" Set Variable sets $Week Start equal to $Week End in the form of a date fine, but when I add the "+1" $Week Start is treated as a number not a date and also it also only increments the last digit i.e. the year instead of the day which is what I what.

I'm not sure what I'm doing wrong - is this the right way to be doing this?

Thanks in advance.

Graham

Posted

Yes. The date which it is set to is passed into this script:


Set Variable[$Week end;RightValues(Get(ScriptParameter);1)]

I'm using Speak[$Week end] to listen to the format and it's describing it as "Twelve, Tweleve, Two thousand and six" not as "Twelve million, one hundred and twenty two thousand and seven" which is what happens when I try to set $week start to $week end +1.

Posted

Huh? I have no idea what you said there. However, I am quite sure the result of RightValues() is text, and with an extra carriage return to boot.

Posted

Yes. The date which it is set to is passed into this script:

That doesn't really mean a lot... You might have issues with your date formats here so i suggest that you pass the following as your script parameter: GetAsNumber(GetAsDate(YourDate))

Then for your variable use:

Set Variable[ $weekEnd ; GetAsDate(Get(ScriptParameter)) ]

Set Variable[ $weekStart ; $weekEnd + 1 ]

... might work.

This topic is 6380 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.