09-25-2022, 09:33 AM
COMMON SHARED was also used back in the QJurassic Era when you needed to pass variables to modules in multi-modular programs. Using multi-modular programming allowed for more than the 64K single module limit. I think I used to pull about 220K with that method. Note because memory was and still is allocated for different processes unevenly, it was darn near impossible to write a program that would end up being 256K.
Anyway, back to the point. Yes, whenever possible a line number should be reported by the IDE. Steve, when he is feeling better, or Matt may want to have a look at adding line number recognition.
Also, even with DIM SHARED, we have to define the elements in the array...
DIM SHARED test(100) AS STRING * 256
or ...
DIM SHARED test(0) AS STRING * 256
...and
REDIM test(100) ' Sometime later.
Unfortunately, arrays were not able to be made into types.
Pete
Anyway, back to the point. Yes, whenever possible a line number should be reported by the IDE. Steve, when he is feeling better, or Matt may want to have a look at adding line number recognition.
Also, even with DIM SHARED, we have to define the elements in the array...
DIM SHARED test(100) AS STRING * 256
or ...
DIM SHARED test(0) AS STRING * 256
...and
REDIM test(100) ' Sometime later.
Unfortunately, arrays were not able to be made into types.
Pete