xoomaster Posted May 29, 2006 Share 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 Link to comment Share on other sites More sharing options...
hbrendel Posted May 29, 2006 Share 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 Link to comment Share on other sites More sharing options...
LaRetta Posted May 29, 2006 Share 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: Link to comment Share on other sites More sharing options...
hbrendel Posted May 29, 2006 Share Posted May 29, 2006 You shouldn't need any additional fields for this Just to make it possible to do other time ranges. : Link to comment Share on other sites More sharing options...
xoomaster Posted May 29, 2006 Author Share Posted May 29, 2006 thank you guys and girls. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6535 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