Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is this a bug with Round or is it just me BarrySWTP 10 1,293 07-07-2025, 08:40 PM
Last Post: BarrySWTP
  Exiting FOR NEXT, maybe a bug? Version 4.1.0 on Linux Circlotron 4 866 05-09-2025, 02:22 AM
Last Post: Circlotron
  Compile error when .bas name is same as a directory (linux) Dav 3 807 10-18-2024, 03:32 PM
Last Post: Kernelpanic
  I have fallen in a bug or weird behaviour TempodiBasic 2 694 10-08-2024, 06:09 PM
Last Post: TempodiBasic
  Error Message bplus 3 906 08-20-2024, 09:03 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)