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 -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html NEW! GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8