Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Bug, who's seen it?
Message
De
16/12/1999 09:16:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00304389
Message ID:
00304607
Vues:
32
>Christof,
>
>Here's another infelicity of teh WITH/ENDWITH construct that I got bit by. The object reference is resolved on the WITH line and it is not refreshed later;
>
>
>GO TOP
>SCATTER NAME MyData
>SCAN
>   WITH MyData
>       .Name = "Joe Smith 1"
>   ENDWITH
>   GATHER NAME MyData
>   SKIP
>   SCATTER NAME MyData
>ENDSCAN
>
>
>The above code will only change the first record because it loses the reference to MyData after the first pass.

Are you sure you should call this wrong? I mean the object that you started WITH/ENDWITH wit, you destroyed. Should WITH/ENDWITH really pick up any other object that happens to have a variable with the same name referencing it? This behavior seems true to me.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform