Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_tally works different way in vfp6 and vfp7
Message
 
À
13/09/2002 05:56:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00700075
Message ID:
00700328
Vues:
12
>Dear All,
>
>please try these couple of code in vfp6 and then in vfp7 as well.
>select * from <>
>? _tally
>Dimension laTest(_tally)
>? _tally
>Display Memory like laTest
>
>after executing these commands i assumed that laTest array variable will contains the number of elements, which was selected by the sql command.
>in vfp6 this is the case
>but unfortunatelly in vfp7 you will receive an array only with ONE element!!!!
>it looks that the dimension command is also affect the _tally value.
>or am i wrong?
>
>thank you
>Ivan


Additionally, if you just open VPF7 and in command vindow issue ?_type, you should get 0 according to VFP documentation, but at least for me it is 918?!
And the very first /SELECT.../ statement gives the very same 918 no matter how many records there are collected!

But everything returns to 'normal' if the very first statement will be _tally=0
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform