Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_tally works different way in vfp6 and vfp7
Message
 
To
13/09/2002 05:56:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700075
Message ID:
00700328
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform