February 13, 200718 yr I have attached a file that has a simple calc that extracts the hour from a time field. My final solution is for a FMP5/6 client. My Formula is: Abs(Mod(Hour(TimeStart)+12 , 12))& If(Hour(TimeStart) < 12, "A", "P") In FMP5 i can not get the proper result. timeIn5.zip
February 13, 200718 yr I don't quite see the problem - other than hours 0, 12 and 24 turning into 0, instead of the expected 12. But that will happen in both versions. Please provide an example of input value and the incorrect result. If you are on a Intel Mac, running FMP5 in Rosetta, the problem might be there: http://fmforums.com/forum/showtopic.php?tid/181094/ http://fmforums.com/forum/showtopic.php?tid/181095/
February 13, 200718 yr Author from 7pm up the result starts at -5, -4, -3, etc. But now that you say there is no problem, I am curious if it is that the client is running FMP6 on a Mac Intel machine.
Create an account or sign in to comment