Thread: How to code?
View Single Post
  #500 (permalink)  
Old 11-25-2007, 08:38 PM
MrPip MrPip is offline
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 553
MrPip is on a distinguished road
Quote:
Originally Posted by ralph.ronnquist View Post
Maybe you meant something like the following:
PHP Code:
if ( TimeHourClocks ) == ) {
    
MathFloorTimeMinuteClocks ) / 15 );
} else if ( 
TimeHourClocks ) == ) {
    
MathFloorTimeMinuteClocks ) / 15 ) + 4;

Or maybe

if (TimeHour(Clocks) == 7)
{
switch (TimeMinute(Clocks)
{
case 15 : B = 1;
break;
case 30 : B = 2;
break;
case 45 : B = 3;
}
}

if (TimeHour(Clocks) == 8)
{
switch (TimkeMinute(Clocks)
{
case 0 : B = 4;
break;
case 15 : B = 5;
break;
case 30 : B = 6;

}
}

Otherwise 7:17 would also set a value of 1 to B.

Robert

Last edited by MrPip; 11-25-2007 at 08:39 PM. Reason: fix typo
Reply With Quote