Page 1 of 1 1
Topic Options
#79072 - 2002-08-02 08:41 PM Array out of bounds in kix 4.11b2
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
if you try to use "redim preserve" to trim an array down to 0 length, you get an array out of bounds error.

code:
dim $array[10]
redim preserve $array[ubound($array)+10]
? ubound($array)

;this line wll cause kix32 4.11 beta to to error out.
redim preserve $array[0]
? ubound($array)

This is not a problem in 4.10

Bryce

Top
#79073 - 2002-08-05 04:15 PM Re: Array out of bounds in kix 4.11b2
Anonymous
Unregistered


Hey Bryce,

I discovered this also and let Ruud know. He has confirmed it (redim preserve an array of 1 element, i.e. ubound of 0) to be a 'bug' with 4.11 Beta 2 and assures us that it will be fixed by final build.

-Brian

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 874 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.026 seconds in which 0.013 seconds were spent on a total of 12 queries. Zlib compression enabled.