Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Totalrec()
Message
From
14/05/1999 08:36:26
 
 
To
13/05/1999 19:54:26
Jacky Yuen
Myth Group Computer Technology
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00218784
Message ID:
00218937
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform