Thread overview
toInt() problem
Jan 09, 2004
kinghajj
Jan 09, 2004
Phill
Jan 09, 2004
kinghajj
Jan 09, 2004
J Anderson
Jan 09, 2004
kinghajj
January 09, 2004
code:
int ivar = toInt(var);

var is (in this case) "0".

the error I get is "Error: Error: conversion 0"

what's the problem?


January 09, 2004
I use this

import std.string;
atoi("0")

Phill


"kinghajj" <kinghajj_member@pathlink.com> wrote in message news:btl5u3$1oeq$1@digitaldaemon.com...
> code:
> int ivar = toInt(var);
>
> var is (in this case) "0".
>
> the error I get is "Error: Error: conversion 0"
>
> what's the problem?
>
>


January 09, 2004
I still get the same error :(

In article <btlcs2$2310$1@digitaldaemon.com>, Phill says...
>
>I use this
>
>import std.string;
>atoi("0")
>
>Phill
>
>
>"kinghajj" <kinghajj_member@pathlink.com> wrote in message news:btl5u3$1oeq$1@digitaldaemon.com...
>> code:
>> int ivar = toInt(var);
>>
>> var is (in this case) "0".
>>
>> the error I get is "Error: Error: conversion 0"
>>
>> what's the problem?
>>
>>
>
>


January 09, 2004
kinghajj wrote:

>I still get the same error :(
>
>  
>
Are you using a non-null terminated string? More code would be helpful.

>In article <btlcs2$2310$1@digitaldaemon.com>, Phill says...
>  
>
>>I use this
>>
>>import std.string;
>>atoi("0")
>>
>>Phill
>>
>>
>>"kinghajj" <kinghajj_member@pathlink.com> wrote in message
>>news:btl5u3$1oeq$1@digitaldaemon.com...
>>    
>>
>>>code:
>>>int ivar = toInt(var);
>>>
>>>var is (in this case) "0".
>>>
>>>the error I get is "Error: Error: conversion 0"
>>>
>>>what's the problem?
>>>
>>>
>>>      
>>>
>>    
>>
>
>
>  
>

January 09, 2004
nevermind. I fixed it. Thx for your help.