Thread: quick question
View Single Post
  #7 (permalink)  
Old 03-30-2006, 01:08 PM
intelligent_14's Avatar
intelligent_14 intelligent_14 is offline
Junior Member
 
Join Date: Mar 2006
Location: Tehran/Iran
Posts: 24
intelligent_14 is on a distinguished road
Another Way

I prefer to use this solution for finding new Bars

HTML Code:
bool NewBar()
  {
  static datetime LastTime;
  if (LastTime != Time[0])
    {
    LastTime = Time[0];
    return(true);
    }
  return(false);
  }
it's seems to be shorter
__________________
there wil be nothig for a person exept his efforts (Emam Ali Alayhesalam)
M.A.Gh
Reply With Quote