Article View: borland.public.csharpbuilder.language.csharp
Article #357Re: cast string to integer (or float)
From: Joanna Carter (TeamB)
Date: Fri, 18 Feb 2005 18:27
Date: Fri, 18 Feb 2005 18:27
19 lines
1337 bytes
1337 bytes
"Jay" <jay@nottoosadproggie.co.uk> a οΏ½crit dans le message de news:
42161391$2@newsgroups.borland.com...
> in C# how can I cast strings to int? The Delphi equiv of StrToInt etc
myInt = Convert.ToInt32("123");
which is a wrapper for :
myInt = System.Int32.Parse("123");
Joanna
--
Joanna Carter (TeamB)
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker
Technical Details
Message-ID:
<421633df@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42161391$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,a2c56a2789ee51d9 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII From: "Joanna Carter \(TeamB\)" <joanna@nospam.co.uk> Newsgroups: borland.public.csharpbuilder.language.csharp References: <42161391$2@newsgroups.borland.com> Subject: Re: cast string to integer (or float) Date: Fri, 18 Feb 2005 18:27:53 -0000 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 81.152.39.186 Message-ID: <421633df@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108751327 81.152.39.186 (18 Feb 2005 10:28:47 -0800) X-Authenticated-User: jcarter Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail