Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't add array property to form (VFP9)
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01026150
Message ID:
01026356
Views:
24
>Thanks, but I see my problem. Although I see a number of other problems.
>
>1. I'm doing a "copy to array". Well, duh, unlike practically every other FoxPro command that creates an array, this command does not resize an existing array. Thus the array is truncated. I think that is very inconsistent behavior. That, IMO, just doens't make sense since you can certainly control which records are copied via SCOPE or the FOR or WHILE options. And with the FOR and WHILE there's no way that you will necessarily know the number of rows you will copy. Ok, I guess the workaround is to simply wipe out the array, but can you do that if it is a form property?
>
>No, the answer is NO. You need to know the exact size of the array and dimension ahead of time before you use 'Copy to array'. Kinda useless, IMO.
>

You don't need to know exact size of the destination array. If you redimention array to one item, ACOPY() will resize it.
dimension this.alabels[1]
=ACOPY(laArray, this.alabels]
<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform