Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 16730, Clearing a 0-elements vararray

by Piero Freguia Email: Anonymous


After you clear (implicitly or explicitly) a 0-elements vararray you obtain the following exception "Variant array index out of bounds"
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 6.0 15 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Thu, 18 Oct 2001 03:04:31 GMT
Originally uploaded on Thu, 18 Oct 2001 03:05:02 GMT
Description
The error has been found at line 419 of unit Variants.
The code must be correct as follow:
replace line 419 with this code:

if InBounds(LDimCount - 1) then

You can see a correct use of the previous test in another function at line 577.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03