Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of records read
Message
 
To
12/09/2002 16:00:49
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00699917
Message ID:
00700030
Views:
14
This message has been marked as the solution to the initial question of the thread.
Hi Nerissa,

here's some additional information ... if you only need the information you're trying to get in your code snippet, here is a ready-to-use BizObj method:
*   Library: KBizness.vcx
*   Class:   KBizObj
*   Method:  GetFilePos()
*   Returns:  Returns the current file position as follows:
*			  "BOF", "EOF", "ONERECORD", "NORECORDS"
So I made it a little complicated in my first answer, since I followed more the title of thread than the message body. But if you once want to know the number of records, you can consider doing what I wrote there :)

Armin

>Is it possible to determine the number of returned records after a biz object requery? I know that I can use reccount() but I don't know where to put it. My current code below doesn't work. I'm wondering if I have to override the method to insert the reccount() inside the requery() method of the business object.
>
>This code is in the Click() method of my command button.
>
>IF Biz.Requery() = REQUERY_SUCCESS
> lnMetaCount = IIF(RECCOUNT() > 1, FILE_BOF, ;
> IIF(RECCOUNT() = 0, FILE_NORECORDS, FILE_ONERECORD))
>ELSE
> lnMetaCount=FILE_NORECORDS
>ENDIF
>
>Thanks a lot for all the help.
>
>Nerissa

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform