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 » EditTime - how to change format?- [SOLVED]-EditField & Convert
Re: EditTime - Is it possible to change displayed format? [message #565 is a reply to message #534] Mon, 09 January 2006 19:07 Go to previous messageGo to previous message
Garry is currently offline  Garry
Messages: 7
Registered: November 2005
Promising Member
Thanks for you're reply, I can see where to go now.

I can see that the Format function is the one that needs to be adjusted for my scenario, however when I follow the sources I see that the default Format function in Convert is the following:
Value  Convert::Format(const Value& q) const {
	if(IsVoid(q) || q.IsNull()) return String();
	switch(q.GetType()) {
	case INT_V:
		return IntStr((int)q);
	case DOUBLE_V:
		return DblStr((double)q);
	case DATE_V:
		return ::Format(Date(q));
	case TIME_V:
		return ::Format(Time(q));
	case STRING_V:
	case WSTRING_V:
		return q;
	}

I'm quite new to C++ but trying to catch up quick, but I'm unsure where ::Format(Time(q)) belongs to. I can see that Time() is a declared operator function of Value(and therefore q), but I can't seem to find the definition.

Sorry for the newbie-ness!! Embarassed
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trouble with EditTime
Next Topic: DocEdit code scrolling
Goto Forum:
  


Current Time: Sun Apr 28 05:53:58 CEST 2024

Total time taken to generate the page: 0.03176 seconds