Here's the code snippet from VB:
Could someone please help with migrating this code to basic4android?
B4X:
Structure ItemR 'Declare a custom structure
Dim Rr As Double
Dim RX As Double
Dim RY As Double
Dim idx As String
End Structure
sub
Dim myarray(128) As ItemR 'dim an array as our custom structure
For m as integer =0 to 127
myarray(m).Rr = somenumber
myarray(m).RX = somenumber
myarray(m).RY = somenumber
myarray(m).idx = "sometext"
next
Dim maxvalue1 As Integer = 0 'Find the max value
For Each item As ItemR In myarray
If item.Rr > maxvalue1 Then maxvalue1 = item.Rr
Next
end sub
Could someone please help with migrating this code to basic4android?