U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Date Scan Problem
Re: Date Scan Problem [message #14103 is a reply to message #14100] Mon, 11 February 2008 08:55 Go to previous message
zsolt is currently offline  zsolt
Messages: 704
Registered: December 2005
Location: Budapest, Hungary
Contributor
luzr wrote on Mon, 11 February 2008 08:27

OK, does this sound better?

	case DATE_V:
		if(text.IsEmpty()) return (Date) Null;
		s = StrToDate(date, text);
		if(s)
			for(;;) {
				if(IsDigit(*s))
					break;
				if(*s == '\0')
					return date;
				s++;
			}
		return ErrorValue(t_("Invalid date !"));



Yes, thanks.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Serious bug in String comparison or weird feature?
Next Topic: [BUG] Ctrl::AlignRight
Goto Forum:
  


Current Time: Thu Jun 04 15:53:58 GMT+2 2026

Total time taken to generate the page: 0.00449 seconds