Based on How can I declare a two dimensional string array? I've made my own array but am struggling to retrieve the values.
I get a syntax error which appears to relate to the second (0) line (0) = (((1) / total) * (100 - (vPercentChanger)))
but the error might occur on the line above this (see code below).
Error: Syntax error. Code:
'Test values
Dim highPer As Double = 5
Dim high As Double = 10
Dim medPer As Double = 15
Dim medium As Double = 20
Dim lowPer As Double = 1
Dim low As Double = 2
Dim naPer As Double = 3
Dim na As Double = 4
Dim array1 As Double(,) = New Double(3, 1) {{highPer, high}, {medPer, medium}, {lowPer, low}, {naPer, na}}
Dim tmpList As New List(Of Double)
For i As Integer = 0 To array1.Rank - 1
If (0) > 5 + vPercentChanger Then
(0) = (((1) / total) * (100 - (vPercentChanger)))
End If
Next
Further notes:
I've tried array1(0) and tmpList(0) but both create errors. I believe I am close. I've tried the C# to VB converter but this does not resolve this issue.