VBAndCs / sVB-Small-Visual-Basic

Small Visual Basic (sVB) is an educational programming language, created by Eng. Mohammad Hamdy as an evolved version of Microsoft Small Basic (SB). It is meant to be easier and more powerful at the same time, to introduce programming basics to kids and beginners of any age, provided that they can use the English keyboard on the Windows OS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Array.IndexOf always returns 0 when it found the first element

dynamicboy opened this issue · comments

Version:2.8.7
Details:

Small Visual Basic

ArrayGroup1[1] = 1
ArrayGroup1[2] = 2
ArrayGroup1[3] = 3

For I = 0 To 3
   Index = Array.IndexOf(ArrayGroup1, I, 1, True)
   TW.WriteLine("Index = " + Index)
Next

Output:
Index = 0
Index = 0
Index = 1
Index = 2