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

Home » U++ Library support » U++ Core » Date Scan Problem
Date Scan Problem [message #14094] Sun, 10 February 2008 22:18 Go to previous message
zsolt is currently offline  zsolt
Messages: 704
Registered: December 2005
Location: Budapest, Hungary
Contributor
The problem is, that
Value Scan(dword qtype, const String& text)
has changed, to allow only spaces after the date, but in standard Hungarian date format, there is an ending dot ('.') after date.

The Hungarian date format is "YYYY.MM.DD.", so the valid dates are not valid according to the scan function.

The code in Scan function:
	case DATE_V:
		if(text.IsEmpty()) return (Date) Null;
		s = StrToDate(date, text);
		if(s) {
			while(*s == ' ') s++;
			if(*s == '\0')
				return date;
		}
		return ErrorValue(t_("Invalid date !"));

I don't know the theory behind the new behaviour of Scan(), but is it possible to change it to a usable implementation?
 
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:54:00 GMT+2 2026

Total time taken to generate the page: 0.00479 seconds