Converting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zayda

    Converting

    My instructor is an idiot. I'm trying to convert txt to int and things like
    that. I keeps getting errors on one part. So it has me wondering, can you
    convert lbl to int or dec?
  • Jon Skeet [C# MVP]

    #2
    Re: Converting

    zayda <zayda@discussi ons.microsoft.c om> wrote:[color=blue]
    > My instructor is an idiot. I'm trying to convert txt to int and things like
    > that. I keeps getting errors on one part. So it has me wondering, can you
    > convert lbl to int or dec?[/color]

    You can convert from string to int, decimal, float etc. See the Parse
    method on each of the numeric types.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    Working...