Latest oxygen package

Started by Frank Brübach, October 04, 2023, 04:19:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nicola

Redim in the new help file

Theo Gottwald

@Charles Pegge, does it mean i can redim a multidimensional array on any dimension and the internal content is moved in memory as it should to fit the new size?

Charles Pegge

Redim uses a simple block copy to preserve the data, so you have to be careful when redefining dimensions.

You can also use another closely related construct remap, which allows you to access any buffer or block of data in terms of new dimensions

for instance:

redim int d(10000)
remap byte b(10000,4)
@b=@d
d[7]=0x103
print b[7,1] '3
print b[7,2] '1