Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any better way around Duplicate Definition problems?
#10
(01-25-2025, 06:44 AM)hsiangch_ong Wrote: what happened to redim _preserve?

i'm missing something.  go ahead.  laugh at me.

Well, if you mean trying...

Code: (Select All)
test pete$()

Sub test (pete$())
    ReDim _Preserve pete$(5)
End Sub

That still throws a DUPLICATE DEFINITION error and it would also require a Redim pete$(0) as the first line to work, just like Redim without _Preserve.

Now I do use Redim _Preserve in several areas of my programs to increase array size and even to use something like _Height, which can be changed in resizing events, etc. It is GREAT!!! for those purposes, but sadly, is not a use in this case, unless I'm missing something.

Pete
Reply


Messages In This Thread
RE: Any better way around Duplicate Definition problems? - by Pete - 01-25-2025, 05:23 PM



Users browsing this thread: 2 Guest(s)