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 » LineEdit, EditFields, DocEdit » NotNull not working with custom SetConvert [CLOSED]
Re: NotNull not working with custom SetConvert [CLOSED] [message #54759 is a reply to message #54757] Tue, 08 September 2020 07:42 Go to previous message
Pradip is currently offline  Pradip
Messages: 109
Registered: February 2019
Location: India
Experienced Member
Sorry! I screwed up! Embarassed

The commented line caused all that trouble

Value ConvWorkDay::Scan(const Value& text) const {
	DUMP("ConvWorkDay::Scan");
//	if(text.IsNull()) return Null;

	Value v = ConvertDate::Scan(text);
	if(v.IsError()) return v;
	
	Date d = v;
	if(IsHoliday(d)) return ErrorValue("Cannot be a holiday!");
	return v;
}


Regards,
Pradip
 
Read Message
Read Message
Previous Topic: How to toggle on/off word wrap in LineEdit/DocEdit?
Next Topic: double-click in EditField
Goto Forum:
  


Current Time: Sat Apr 27 21:10:54 CEST 2024

Total time taken to generate the page: 0.03018 seconds