Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Totalrec()
Message
De
14/05/1999 08:36:26
 
 
À
13/05/1999 19:54:26
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00218784
Message ID:
00218937
Vues:
19
>Dear all ,
> I'm facing a problem which make me crazy .
> I use a SQL command :
>
> Select wname,wday From workday Where wday = date() ;
> And wname <> "blank" Into Cursor tmp
>
> The totalrec of workday is 4 ,and the totalrec of tmp is 2
> But when I do that :
>
> Select tmp
> i = reccount()
>
> The value of i is 4 .
> Do you know why ?

Your cursor is actually a simple filter of the WorkDay table - you need to force the SQL Select to create a separate, temporary table. Try adding the NOFILTER clause to the end of your SQL Select, or add a low-overhead but non-Rushmore optimizable cndition to the WHERE clause. Using NOFILTER is preferable.

> Thanx
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform