|
|
|
|
![]() ![]() |
Nov 14 2006, 07:18 PM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 15 Joined: 14-November 06 Member No.: 17,259 |
I need to verify that a text time entry (I know there's the time entry component, but nobody liked that one, they would rather type in a text form of the times) from a user input ends on the quarter hour. I know that I can split the entry apart and check the last two digits for 15, 30, 45 or 00, but was wondering if there's a different/better way.
|
|
|
|
Nov 14 2006, 07:27 PM
Post
#2
|
|
|
Nenad Bozidarevic Group: [MODERATOR] Posts: 1,002 Joined: 7-November 05 From: Belgrade, Serbia Member No.: 9,500 |
I don't think there's anything better. Just extract the last two digits (let's call it "exct" and set up this condition
CODE if (exct mod 15 = 0) and (exct < 46) then condition:=true; Whereas there must be numerous solution to this, I am sure you don't want to complicate things unnecessarily. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 01:22 AM |