convert int to string

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

    #1

    convert int to string

    Please,I am begginer,can you tell me which function
    converts integer to string in C# and can you give me
    correct syntax of it?
    Thank you
    ..


  • Michael Culley

    #2
    Re: convert int to string

    "djozy" <anonymous@disc ussions.microso ft.com> wrote in message news:058f01c3b2 1f$74388fa0$a00 1280a@phx.gbl.. .[color=blue]
    > Please,I am begginer,can you tell me which function
    > converts integer to string in C# and can you give me
    > correct syntax of it?
    > Thank you
    > .[/color]

    int X = 5;
    MessageBox.Show (X.ToString());

    everything has a ToString function in dot net so you can convert anything to a string, although it doesn't always give you something
    meaningful.

    --
    Michael Culley


    [color=blue]
    >
    >[/color]


    Comment

    • djozy

      #3
      Re: convert int to string

      Michael,thank you very much for this quick answer.I hope
      that you will have nothing against if I contact you in the
      future for simple questions like this.
      Best regards from Croatia

      Comment

      Working...