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   |
omari
Messages: 276 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.
|
|
|
|
Goto Forum:
Current Time: Mon May 12 15:40:02 CEST 2025
Total time taken to generate the page: 0.02522 seconds
|