Re: String to int
Chris Fouts <[email protected]> Fri, 20 Apr 2012 10:57:07 -0400
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
--===============8912495518992835633== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_CAEEAE7CCE73AD44B00FC28BC7982FAC0967FD08DFsrv584caemilu_" --_000_CAEEAE7CCE73AD44B00FC28BC7982FAC0967FD08DFsrv584caemilu_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sorry, I see it now, it's int::parse(SomeString) From: Chris Fouts Sent: Friday, April 20, 2012 10:53 AM To: [email protected] Subject: String to int I'm using the convert::to-int function to convert a string property into an= int so I can increment it. However I get this (albeit just) warning. Function convert::to-int is deprecated. Use type-specific conversion funct= ions instead. I don't see a string type-specific conversion here. http://nant.sourceforge= .net/release/0.85/help/functions/index.html -Chris ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please = immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** --_000_CAEEAE7CCE73AD44B00FC28BC7982FAC0967FD08DFsrv584caemilu_ Content-Type: text/html; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content= =3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros= oft Word 12 (filtered medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:windowtext;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli= nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'c= olor:#1F497D'>Sorry, I see it now, it’s int::parse(SomeString)<o:p></= o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbs= p;</o:p></span></p><div><div style=3D'border:none;border-top:solid #B5C4DF = 1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><b><span style=3D'fon= t-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span styl= e=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Chris Fouts <br><= b>Sent:</b> Friday, April 20, 2012 10:53 AM<br><b>To:</b> nant-users@lists.= sourceforge.net<br><b>Subject:</b> String to int<o:p></o:p></span></p></div= ></div><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>IR= 17;m using the convert::to-int function to convert a string property into a= n int so I can increment it. However I get this (albeit just) warning.<o:p>= </o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>Fu= nction convert::to-int is deprecated. Use type-specific conversion fu= nctions<o:p></o:p></p><p class=3DMsoNormal>instead.<o:p></o:p></p><p class= =3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>I don’t see a = string type-specific conversion here. <a href=3D"http://nant.sourceforge.ne= t/release/0.85/help/functions/index.html">http://nant.sourceforge.net/relea= se/0.85/help/functions/index.html</a><o:p></o:p></p><p class=3DMsoNormal><o= :p> </o:p></p><p class=3DMsoNormal>-Chris<o:p></o:p></p></div><p></p> <p><br> ***This e-mail message is intended only for the above named recipient(s)<br> and may contain information that is sensitive or proprietary. If you have<b= r> received this message in error or are not the named recipient(s), please <b= r> immediately notify the sender, delete this e-mail message without making<br> a copy and do not disclose or relay this e-mail message to anyone.***</p></= body></html> --_000_CAEEAE7CCE73AD44B00FC28BC7982FAC0967FD08DFsrv584caemilu_-- --===============8912495518992835633== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 --===============8912495518992835633== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users --===============8912495518992835633==--