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 » Community » Newbie corner » ArrayCtrl - convert String
Re: ArrayCtrl - convert String [message #37465 is a reply to message #37458] Tue, 09 October 2012 14:39 Go to previous messageGo to previous message
omari is currently offline  omari
Messages: 266
Registered: March 2010
Experienced Member
Hello,

to convert from String to Double, override the function Scan.

for example:
struct ConvDouble : Convert
{
	Value Format(const String &q) const
	{
		return q.IsNull ? Null : UPP::Format("%.2d", q);
	}

	Value Scan(const Value& text) const
	{
                
		String s = text;      //
		return ScanDouble(s); // Not tested. 
	}
};


omari.


regards
omari.
 
Read Message
Read Message
Read Message
Previous Topic: Callbacks mechanism doesn't handle overloaded functions?
Next Topic: [HttpRequest] undefined identifier
Goto Forum:
  


Current Time: Mon May 13 04:59:19 CEST 2024

Total time taken to generate the page: 0.02993 seconds