copy to array

This forum is meant for questions about the Visual FoxPro Language support in X#.

Post Reply
User avatar
kevclark64
Posts: 127
Joined: Thu Aug 15, 2019 7:30 pm
Location: USA

copy to array

Post by kevclark64 »

It appears to be the case (using version 2.11) that, if an array is dimensioned with more columns than a corresponding table contains, you get a Bound Error when you copy to array. In other words, if you dimension myArray(1000,4) and the table you are copying has only three columns then it generates a Bound Error. In Foxpro, if an array has more columns than a table then the extra columns simply contain .f.
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

copy to array

Post by robert »

Kevin,
Thanks for the report. We'll look into this asap.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

copy to array

Post by robert »

Kevin,
Fixed in next build

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
kevclark64
Posts: 127
Joined: Thu Aug 15, 2019 7:30 pm
Location: USA

copy to array

Post by kevclark64 »

Thanks, that's very helpful.
Post Reply