Re: [libreoffice-users] ReDim Preserve (BASIC macro programming)

2022-07-10 Thread Michael D. Setzer II
Myarray and array On 10 Jul 2022 at 14:59, Remy Gauthier wrote: Subject:Re: [libreoffice-users] ReDim Preserve (BASIC macro programming) From: Remy Gauthier To: Johnny Rosenberg , LibreOffice Användare Date sent

Re: [libreoffice-users] ReDim Preserve (BASIC macro programming)

2022-07-10 Thread Andrew Pitonyak
I said but you can I don't have access to any materials or any way to test this, but I suspect it's because the array is initialized using the array function. If you run a quick test and initialize your array by defining the size and then manually setting the values, how better will work. I

[libreoffice-users] ReDim Preserve (BASIC macro programming)

2022-07-10 Thread Johnny Rosenberg
Hi. Is this a bug or is my brain just not working? *Sub ResizeArrayTest Dim MyArray(5) As Long MyArray=Array(1, 2, 3, 4, 5, 6) ReDim Preserve MyArray(4)End Sub* Running this creates the array MyArray, but it's *empty*, so it seems like ” *Preserve*” doesn't work here. Or what am