Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FCOUNT() Error relative to CursorAdapter fields - How to
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01174519
Message ID:
01174521
Vues:
13
>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.


Hi Peter,

Are you using data source type "ADO"?
There is a bug that manifests when Recordset supports Bookmarks, thank you for reporting it.

AFIELDS() returns correct value.

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform