We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b671504 commit bf33f3aCopy full SHA for bf33f3a
1 file changed
docs/byref.md
@@ -30,7 +30,7 @@ REM arrays passed to functions can be of *any dimensions*. Use LBOUND and UBOUND
30
FUNCTION maxValue(ByRef a() as Ubyte) As UByte
31
DIM i as UInteger
32
DIM result As UByte = 0
33
- FOR i = 0 TO 4
+ FOR i = LBOUND(a, 1) TO UBOUND(a, 1)
34
IF a(i) > result THEN result = a(i)
35
NEXT i
36
RETURN result
0 commit comments