Prof A Olowofoyeku (The African Chief) wrote:
On 29 Sep 2004 at 18:22, Frank Heckenbach wrote:
[...]
So my proposal is to add (now or later):
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.
Oh yeah, I remember (we've implemented them in our GPCUtils as well). In fact, my suggestion would be quite the same, just generalized, as you say. So it would be a drop-in replacement for all of those.
Frank