Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array gets lost
Message
De
16/10/2003 19:55:25
 
 
À
16/10/2003 19:44:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00839576
Message ID:
00839578
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform