C ChinnuBlr Member Joined Sep 30, 2009 Messages 10 Programming Experience Beginner Nov 30, 2009 #1 Hi, Is Int value type ?.. How to convert to string ? Thanks
BlackByte Well-known member Joined Jun 29, 2008 Messages 126 Location South Africa, Durban Programming Experience 1-3 Nov 30, 2009 #2 Don't quite understand your question, but you can convert an Integer to a string by saying ,e.g VB.NET: str = i.ToString Upvote 0 Downvote
Don't quite understand your question, but you can convert an Integer to a string by saying ,e.g VB.NET: str = i.ToString
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,875 Location Norway Programming Experience 10+ Nov 30, 2009 #3 Value Types and Reference Types Value types include the following: * All numeric data types Click to expand... Upvote 0 Downvote
Value Types and Reference Types Value types include the following: * All numeric data types Click to expand...
C ChinnuBlr Member Joined Sep 30, 2009 Messages 10 Programming Experience Beginner Nov 30, 2009 #4 Hi, Thanks for the reply... Ya basically Int is an Value Type right... When u convert that is str=1.tostring...... After converting is it value type or reference type... Bcoz ur converting to string rite but string is reference type..... Please do let me know Thanks BlackByte said: Don't quite understand your question, but you can convert an Integer to a string by saying ,e.g VB.NET: str = i.ToString Click to expand... Upvote 0 Downvote
Hi, Thanks for the reply... Ya basically Int is an Value Type right... When u convert that is str=1.tostring...... After converting is it value type or reference type... Bcoz ur converting to string rite but string is reference type..... Please do let me know Thanks BlackByte said: Don't quite understand your question, but you can convert an Integer to a string by saying ,e.g VB.NET: str = i.ToString Click to expand...
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,875 Location Norway Programming Experience 10+ Dec 1, 2009 #5 ToString returns the String value of the converted value, the value remains unchanged. The integer value is still an integer, the string is a string. Upvote 0 Downvote
ToString returns the String value of the converted value, the value remains unchanged. The integer value is still an integer, the string is a string.