Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pack a cursor?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01335982
Message ID:
01336363
Vues:
32
>>>In this case, this cursor has several records (usually no more than 20). And I have a "man-made" grid where the records of the cursor are scroll and processed. When user deletes a record, the easiest for me to deal with this is to PACK the cursor (as Sergey suggested) and refresh the grid. So far in my testing the approach of "packing" records works very well!
>>
>>Did you verify that it works OK with the grid? Are all your formatting and methods intact after doing this? I would be a little bit cautious here, because grid doesn't like losing its recordsource even for a second. I'm not sure selecting into itself qualifies as losing its recordsource, but you need to be 100% sure here.
>
>I am not using VFP Grid. This is what I referred to as "man-made" grid or a roll-your-own. I created this grid based on bunch of different controls (textboxes, labels, buttons, etc.). So I don't have to be concerned about VFP grid.

I see. Then you're all set. But still it would be nice if someone can quickly check if the approach of selecting into itself with work with normal VFP grid. I suspect it would not.

All the best.
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