2,892 questions
How about this
Dim MyArray As String() = {"AB", "ABC", "DFG"}
Dim totLen As Integer = (From el In MyArray Select el.Length).Sum
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dim MyArray as String()={"AB","ABC","DFG"}
Need Result
Dim int1 as Integer=8
How about this
Dim MyArray As String() = {"AB", "ABC", "DFG"}
Dim totLen As Integer = (From el In MyArray Select el.Length).Sum