Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Tally functionality in VFP9
Message
 
 
À
28/11/2006 07:30:51
Aman Bains
Jaguar Computers
Jalandhar, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01172890
Message ID:
01172892
Vues:
19
This message has been marked as a message which has helped to the initial question of the thread.
>I have been using _tally= 0 condition in my programs in VFP6 to check if any records are returned by SQL Select.
>
>In VFP9 a null record is returned and value of _tally is 1.
>
>How best should I change my code to verify if any useful records/rows were returned?

It only happens "when using aggregate functions, such as MAX( ), in the SQL SELECT command without a GROUP BY clause, and no matching records are found, Visual FoxPro returns a result set with a single record and _TALLY set to 1. In versions prior to Visual FoxPro 9.0, no records are returned, and _TALLY is set to 0". You can use ISNULL() function to check return value.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform