Stuart Taylor Posted February 28, 2007 Posted February 28, 2007 (edited) I'm having a little problem completing a graphic interface I have a start time and end time The graphic displays the start and end time I have managed to display the hours ... but want to refine it to the quarter hour. i have managed to work out a way of doing it (by hard coding the results 0 to 4 (x:00=0, x:15=2, x:30=3, x:45=4)... but can not get my calc to work. (notes in calculation) I will further refine it by changing the calc by rounding the minutes to the quarter hour after resolving this. I would also like to put the left and right graphic on either end of the time block ... but will tackle this afterwards Any help would be great ... i think that i can not see the wood for the trees. Oh and if you can see an even simpler way of achieving this im all ears. File Attached best Stuart TimeBlock.fp7.zip Edited February 28, 2007 by Guest
comment Posted February 28, 2007 Posted February 28, 2007 (edited) Something like this? Let ( [ s = Round ( Extend ( Start_Time ) / 900 ; 0 ) ; e = Round ( Extend ( End_Time ) / 900 ; 0 ) ; i = Get ( CalculationRepetitionNumber ) - 1 ] ; GetRepetition ( Graphics ; 1 + ( i ≥ s ) + ( i ≥ e ) ) ) Edited February 28, 2007 by Guest
Stuart Taylor Posted February 28, 2007 Author Posted February 28, 2007 Hi Comment, This is really, really good. I will modify it a little for my purposes. I have not really dealt with time very often and had never considered handling dates as numerical values. This is really going to make my life alot easier. Thanks again, Stuart :thankyou:
comment Posted February 28, 2007 Posted February 28, 2007 I couldn't test this, but I noticed a small 'bug' - hopefully fixed now.
Recommended Posts
This topic is 6539 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