Click here to Skip to main content
15,885,817 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi all,

If i want to change the value from integer and set it as string, what is the declaration? I've used to see that to convert, by using CInt(CStr) but I'm not sure in what platform. I guest vb6. For vb.net 2010, I'm noticed that it using ascw(label.text(count)).. Right now, if someone know where i can find the other syntax for converting value eg: String, Double, Integer, please give me a link. I will be appreciate it.
Posted

1 solution

Use the Convert method.
Dim value as string
Dim result As Integer

result = Convert.ToInt32(value)


See http://msdn.microsoft.com/en-us/library/sf1aw27b.aspx#Y0[^].
 
Share this answer
 
Comments
Pravin Patil, Mumbai 13-Sep-11 2:59am    
Good answer and +5 link
My 5..
Luiey Ichigo 13-Sep-11 3:06am    
TQ Pravin..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900