Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FCOUNT() Error relative to CursorAdapter fields - How to
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01174519
Message ID:
01174522
Views:
9
I have absolutely no experience with CursorAdapters, but:

Perhaps you might check, with the field() function, what the fields are supposed to be? Perhaps there is some additional information being obtained from the database server.

>Using a couple of cursoradapters each populated with different data sets gathered from an MS SQL 2K backend to show data in grids place into 2 different pages in a pageframe on a form.
>
>Using the PicBtns1 class from wizbtns to provide navigation and search features in each case: I.E. Each grid page has its own PicBtns button set on it ~ in other words, not using 1 common button set but 1 set per page.
>
>The search feature standard class includes FCOUNT() to establish the number of fields in the underlying data source which is either one of the cursoradapters depending upon which page has focus. The correct cursoradapter has focus relative to each page.
>
>PROBLEM: FCOUNT() reports 1 (one) more field in the cursoradapter than the actual number of fields in each case!!!
>
>Why?
>
>What to do about it?
>
>It's a puzzelment. Need help figuiring this out. TIA. /psb
>
>ps. This is actually running in VFP9 SP2 - not SP1 but the SP2 option is not yet available in the version drop-down.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform