I like your thinking.. maybe in the next version of VS
For now though, I would split the values into an array. Then you can loop through the results and add them up.
VB Code:
Dim TextboxText As String = "5 4.1 6.23 0 0 7 7.924" Dim ArrayOfValues() As String = TextboxText.Split(" ") Dim Sum As Double = 0 For Each Value As String In ArrayOfValues If Double.TryParse(Value, Nothing) Then Sum += CDbl(Value) Next MsgBox(Sum)





Reply With Quote