jimlongo Posted February 22, 2012 Posted February 22, 2012 Hi, I have quite a few scripts that perform finds for "2011" as a text field. Is it possible to make a global variable $$CurrentYear so that I don't have to manually go through all these scripts every year and update the year number to the current year. Thanks, jim
Ron Cates Posted February 22, 2012 Posted February 22, 2012 Set Variable ($$CurrentYear ; year( get ( currentdate ) )
jimlongo Posted February 22, 2012 Author Posted February 22, 2012 Thanks, I thought I tried that. And then I just tried Set Variable $$Current Year ; Substitute ( "*/*/" & Year ( Get ( CurrentDate ) ) ;[ "*" ; ""] ; ["/" ; ""] ) which seemed to work. THen I tried your cleaner suggestion which also worked. Thanks!
Recommended Posts
This topic is 4658 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 accountSign in
Already have an account? Sign in here.
Sign In Now