On 10 Sep 00, at 3:52, Frank Heckenbach wrote:
Does anyone have any code for converting an octal string to a numeric value?
Since `8#42' is the EP notation for octal numbers, you can do
ReadStr ('8#' + StringValue, IntegerVar);
Thanks. I'll try that (perhaps you might want to add some octal routines to one of the GPC units)?
(It doesn't work with Val instead of ReadStr for "BP compatibility"...)
:-( I need to do this in a way that will work with other Pascal compilers (but being able to do it with GPC is a good start).
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) Author of: Chief's Installer Pro v5.22.1 for Win32 http://www.bigfoot.com/~African_Chief/chief32.htm Email: African_Chief@bigfoot.com