xoomaster Posted May 29, 2006 Posted May 29, 2006 Sorry guys, but I am new to this forum. My question is : I have a time, say 7:20 AM and want to see if it is within a rage of {7:00 am..10:00 am} . Am I missing something or there is a easy way of doing this in a script step. Thank you Xoomaster
hbrendel Posted May 29, 2006 Posted May 29, 2006 Three fields: Time (time) your questioned time StartTime (time) here you put the 7:00 value EndTime (time) here you put the 10:00 value Script: If [TableName::Time >= TableName::StartTime and TableName::Time <= TableName::EndTime] Show Custom Dialog ["Check"; "Yes!!"] Else Show Custom Dialog ["Check"; "Well eh ... no."] End If
LaRetta Posted May 29, 2006 Posted May 29, 2006 You shouldn't need any additional fields for this. It can all be handled within the script using a boolean test. Script step: If [ Hour ( timeField ) ≥ 7 and Hour ( timeField ) ≤ 10 ] ... do whatever if yes LaRetta :wink2:
hbrendel Posted May 29, 2006 Posted May 29, 2006 You shouldn't need any additional fields for this Just to make it possible to do other time ranges. :
Recommended Posts
This topic is 6810 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