Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limiting Result Set
Message
From
13/01/2000 17:17:27
 
 
To
13/01/2000 14:10:51
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00317810
Message ID:
00317960
Views:
12
I don't think that the FetchSize property will solve your problem. FetchSize determines the number of rows that VFP wait to receive before releasing to the program and retrieving the rest in the background.

Is there anything in the table that even close to unique? You may be able to use the TOP command to limit the return results to 10. For example:
LOCAL lcCompany, hConn, lnResult

hConn = SQLCONNECT(...)
lnResult = SQLEXEC(hConn, ;
  [SELECT TOP 10 company FROM customer WHERE company > ?lcCompany ORDER BY company], 'c_companylist')
This will return the next 10 rows that are after whatever company is stored within the lcCompany variable. BTW, to get the previous 10, change the > to a < and change the ORDER BY to DESC instead of ASC (the default).

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform