I had a few lines similar to:
ReDim MyArray(123) As Long At MyAddress
I was getting GPF errors until I changed ReDim to
Dim. This may or may not be what was causing the
problem, as I was changing other things too. But
I wanted to check the help file to find out for
sure if REDIMing an array At a location is allowed.
When I compile, it does not stop to flag this line
as an error, however, the help file does not specifically
mention the "AT" clause under REDIM. So is this
allowed? If so, can you also REDIM PRESERVE at a
location as well?
Also, I saw another message which said you couldn't
DIM scalar variables AT a location. Would you guys
at PB consider allowing this in a future version? I
know you can do something like DIM MyVar(0) At MyAddress,
but it seems a little less elegant than simply DIM MyVar at MyAddress.
------------------
Daniel Corbier
UCalc Fast Math Parser
http://www.ucalc.com
ReDim MyArray(123) As Long At MyAddress
I was getting GPF errors until I changed ReDim to
Dim. This may or may not be what was causing the
problem, as I was changing other things too. But
I wanted to check the help file to find out for
sure if REDIMing an array At a location is allowed.
When I compile, it does not stop to flag this line
as an error, however, the help file does not specifically
mention the "AT" clause under REDIM. So is this
allowed? If so, can you also REDIM PRESERVE at a
location as well?
Also, I saw another message which said you couldn't
DIM scalar variables AT a location. Would you guys
at PB consider allowing this in a future version? I
know you can do something like DIM MyVar(0) At MyAddress,
but it seems a little less elegant than simply DIM MyVar at MyAddress.
------------------
Daniel Corbier
UCalc Fast Math Parser
http://www.ucalc.com
Comment