Code: Select all
sub test(array() as integer)
print lbound(array(-200),1),ubound(array(200),1)
end sub
dim as integer a(1 to 5)
test(a())
sleep
Code: Select all
sub test(array() as integer)
print lbound(array(-200),1),ubound(array(200),1)
end sub
dim as integer a(1 to 5)
test(a())
sleep
Code: Select all
sub test(ary() as integer)
print lbound(ary,1),ubound(ary(423545),1)
end sub
dim as integer a(1 to 5)
test(a())
? LBound(a(23455242),1)
Sleep
Code: Select all
Sub test(array() As Integer)
Print Lbound(array, 1), Ubound(array, 1)
End Sub
Dim As Integer a(1 To 5)
test( a() )
Sleep
Code: Select all
dim as integer x(0 to 0)
print lbound(x(0))
It is similar to this bug request #3477036:dkl wrote:Strange, seems like the array index is allowed, but ignored:
Code: Select all
dim as integer x(0 to 0) print lbound(x(0))