Unhandled Error Bug Fixed
#4
Code: (Select All)
'$dynamic

foo b(), 100

Print UBound(b)


Sub foo (A(), limit)
    Dim A(limit)

End Sub


Is this what the code looks like?  Like this, I can reproduce the results you mention, but it's not a bug.  It's literally what it says it is:  A duplicate definition.

SUB foo (A() <-- here we define the dynamic array A().

DIM A(limit) <-- and here we try to define the dynamic array A().

If that dim becomes a REDIM, everything works as expected for me.  

Unless I'm missing something here.
Reply


Messages In This Thread
Unhandled Error Bug Fixed - by TarotRedhand - 05-17-2022, 11:22 AM
RE: Unhandled Error Bug - by bplus - 05-17-2022, 04:05 PM
RE: Unhandled Error Bug - by SMcNeill - 05-17-2022, 06:00 PM
RE: Unhandled Error Bug - by SMcNeill - 05-17-2022, 06:06 PM
RE: Unhandled Error Bug [Fixed] - by TarotRedhand - 05-17-2022, 06:24 PM
RE: Unhandled Error Bug Fixed - by bplus - 05-17-2022, 06:35 PM
RE: Unhandled Error Bug Fixed - by SMcNeill - 05-17-2022, 07:12 PM
RE: Unhandled Error Bug Fixed - by TarotRedhand - 05-17-2022, 06:45 PM
RE: Unhandled Error Bug Fixed - by bplus - 05-17-2022, 07:34 PM
RE: Unhandled Error Bug Fixed - by SMcNeill - 05-17-2022, 08:01 PM



Users browsing this thread: 2 Guest(s)