That's an out-of-my-league issue. Luke assigned it to himself on the repo, but Luke has a life outside QB64 realm, so... no idea.
I hate to rain on parades but this can't be done in QB64Code: QB64: [Select]
Original2DArray() = Temp()
We went over this when I explained the need to use MEM to copy arrays.
https://www.qb64.org/forum/index.php?topic=1695.msg109301#msg109301
Apparently the illustration didn't stick.
Why do you confuse the QB64 syntax and C syntax?Code: QB64: [Select]
here linked list
https://www.qb64.org/forum/index.php?----------------
(https://www.qb64.org/forum/index.php?topic=982.msg101768#msg101768)
So this could be a stupid question but...is it possible to make a Random Array? Would a Random Array be similar to a Redim _Preserve Array?
After watching Steve's video on REDIM _PRESERVE I came away with an irrational fear of ever using it! If anybody can come with the Greek for REDIM _PRESERVE and stick -phobia after it, there'd be a completely new psychological condition to be added to psychologists' lists.
Ya bplus - like a Random File but files tend to hold data long term whereas an array is just during a program run....more short term temporary hold of a value. Arrays, are all sequential store and sequential access. Not exactly sure what a Random Array would look like/ act like but, if it did exist, then resetting the records length may easier than a Redim _Preserve of an array.
Just read your recent post re Static/Dynamic arrays. I've tried to use Subs and Functions and reading Multi Dimensional arrays backwards to build a quasi Random Dynamic Array. What a mess in coding, hard to follow the action to find the glitches. Was fun but abandoned it.
I've tried to use Subs and Functions and reading Multi Dimensional arrays backwards to build a quasi Random Dynamic Array.What? ;-)
@Dimster
I suspect you have over complicated a Database structure. YY-MM-DD is just a date field and if your events are just numbers within a range, 0 to 99 or 0 to 999... you could probably fit them all in a fixed length string that you could design a function to read or edit one of the 50 events with use of MID$