dpatrick Posted November 16, 2000 Posted November 16, 2000 How can I put the current time in a global field when a script is run? I have a global field ("Last Update Time") defined as time. The script step is - Set Field ["Last update Time","Time(hour(today),minute(today), seconds(today))"] However the result is always 10:54 AM, not the time the script was run. By the way the script - Set Field ["Last Update","Time"] where "Last Update is a global field formated for a date
fishma Posted November 16, 2000 Posted November 16, 2000 SetField["g_time", "Status( CurrentTime)"] Where g_time is your global time field... Fishma!
Chuck Posted November 17, 2000 Posted November 17, 2000 In general, use Status( CurrentDate ) and Status( CurrentTime ) rather than the Today function. Today is only evaluated during the launch of the files, which is probably why you got the same value every time. The Status functions are evaluated when they are called in the script. Chuck
Recommended Posts
This topic is 9024 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