Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Array gets lost
Message
From
16/10/2003 19:55:25
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00839576
Message ID:
00839578
Views:
16
>Hi All,
>
>I'm currently encountering a quirck in my code:
>
local array laFld[ 12 ]
>laFld = ''
>After the first line the array is nicely created:
>
LAFLD       Local  A
>        (   1)     L  .F.
>        (   2)     L  .F.
>        (   3)     L  .F.
>        (   4)     L  .F.
>        (   5)     L  .F.
>        (   6)     L  .F.
>        (   7)     L  .F.
>        (   8)     L  .F.
>        (   9)     L  .F.
>        (  10)     L  .F.
>        (  11)     L  .F.
>        (  12)     L  .F.
>After the second line the array is gone and replaced by a simple variable:
>
LAFLD       Local  C  ""
>This finding is equal with other array names and other indexes (instead of 12).
>
>It's in VFP7 SP1, W2K.
>
>Is this happening to others too, occasionally?

I've never seen that. I get an array with "" values for all 12 entries. I use code to initialize arrays like that all over the place. Are those two consecutive lines? No chance you've released the variable or something like that in between?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform