Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement