Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids & CursorAdapter CursorFill()
Message
 
 
À
06/01/2011 19:47:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01494587
Message ID:
01495084
Vues:
57
>Naomi,
>
>Are you sure you're GO TOP in the correct alias? I've used the safe select many times and don't remember having a need to run anything special.
>
>Positive. I even changed to GO TOP IN myTempCursor.
>
>I have used safe select in my other forms and it works fine, but not with using CursorAdapters.
>
>In this form class I am doing, it accepts a CA object, stores it in a form property oCursor. I then pass this to the grid to let it do the CursorFill. The grid also has a property oCursor which stores the same value as the form's oCursor property. The other controls in the form call the CursorFill of the form oCursor, grid controls call the grid's oCursor.
>
>Could this be the culprit? Is this not allowed or 'illegal'?
>
>Dennis

I always use an Alias for the grid's RecordSource and Alias.FieldName for the grid's controls.

I did use Safe select approach with the CA. The grid's RecordSource was a cursor created in the Load method of the form. I then used CA for the search and even re-builded its SelectCmd. But since the grid's RecordSource was a different cursor, manipulations with the CA didn't affect it at all.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform