The blog that really BLOGS

Done and Dusted

  • Home
  • About
  • Contact Us
  • Google Search
  • SiteMap

Posts Tagged c sharp

Cannot implicitly convert type ‘int’ to ‘string’

Posted by Capes in c#, Visual Studio Notes on August 2nd, 2009

When using C Sharp (C#) and you get the following debug error:

Cannot implicitly convert type ‘int’ to ‘string’

You need to convert the variable to string from an integer variable by the following:

Convert.ToString(XXX)

Where XXX is the integer variable that needs converting to a String type variable.

c sharp, c#, convert, debug error, integer, string, string type, type int

No Comments

    • Baby
    • business
    • c#
    • Comedy
    • Computers
      • Games
      • Smartphone PDA MDA
      • Software
        • Dreamweaver Notes
        • HTML Notes
        • Illustrator Notes
        • Microsoft Excel
        • Visual Studio Notes
      • Video Games
    • Economics
    • Entertainment
      • Songs Lyrics
    • Fashion
    • Festivals
    • Fish and Aquaria
    • General
    • Health
    • Horticulture
    • Interesting News
    • Investing
    • Jokes
    • Lottery Results
    • Neighbourhood Watch
    • Personal Finance
    • Religions
      • Christian
      • Sikh
    • Restaurant Review
    • Science
    • Sports
    • Technology
    • Uncategorized
  • RSS The Latest from D & D:

    • WAMP services not running -Maybe Skype
    • Kylie Minogue with Furry Friend
    • World Cup Winners: Spain

Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^

SetTextSize SetPageWidth