Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

How to add values inside a string

$
0
0
'to illustrate the dilemma I will use a simple example

dim teststring as string = "2 + 5"
dim testinteger as integer = val(teststring)

'instead of returning 7, visual basic returns 2. How can I get it to return 7?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



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