Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 09, 2004 toInt() problem | ||||
---|---|---|---|---|
| ||||
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 Re: toInt() problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinghajj | 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 Re: toInt() problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to Phill | 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 Re: toInt() problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to kinghajj | 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 Re: toInt() problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to J Anderson | nevermind. I fixed it. Thx for your help. |
Copyright © 1999-2021 by the D Language Foundation