Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 698
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: Tue May 14 17:28:34 CEST 2024

Total time taken to generate the page: 0.03198 seconds