Thread: How to code?
View Single Post
  #505 (permalink)  
Old 11-26-2007, 06:01 AM
antone antone is offline
Senior Member
 
Join Date: Oct 2006
Posts: 104
antone is on a distinguished road
Quote:
Originally Posted by MrPip View Post
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
Thanks again robert.. i am still learning to make an EA.. and what i made always turns out negative.. learn from mistakes that's what i say..

ralph.ronnquist, thanks also.. but it is not what i need..
Reply With Quote