Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2010 Convert number to string

$
0
0
How can you convert string to int val and then back to int val again?
This does not seem to work.

Note dataArray(i) only stores int values but Cost1.Text is a string (but numerical like 2.43)

Code:

MainScreen.Cost1.Text = Convert.ToString(Convert.ToUInt32(MainScreen.Price1) * dataArray(i))
thnx

Viewing all articles
Browse latest Browse all 27189


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>