30 Sep
2004
30 Sep
'04
11:54 a.m.
On Thu, Sep 30, 2004 at 09:20:33AM +0100, Prof A Olowofoyeku (The African Chief) wrote:
On 29 Sep 2004 at 18:22, Frank Heckenbach wrote:
function String2Num(???) (const s: String; var n: <numeric type>): Boolean; Comments? TurboPower had many of these (str2byte, str2long, str2real, etc.) in their tpstring unit. I think one that can cater for all numeric types would be very useful.
{ converts a string by using current locale to a numeric value Example using de_DE locale: if String2NumLocale ('1,50', MyMoney) then ... True on success } function String2NumLocale (const s: String; var n: <numeric type>): Boolean; Eike -- http://www.gnushi.de/