Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleted records and a scrollbar
Message
 
 
À
03/06/2005 09:30:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01019811
Message ID:
01019821
Vues:
28
>Instead of using a filter, you can use a view. Using a filter on a Grid is slow, anyway. I heard rumors that this was improved in VFP 9, but I am not sure how trustworthy this is.
>
>A view will show you only the relevant records.
>
>If a user deletes a record in the view, you would probably still see the gap, until the next time the view is refreshed.

Hilmar,

You misunderstood the problem. I'm using a cursor (read-write) as a record source for the grid. Originally every time user resolved an account, I re-built the cursor. But yesterday I realized (with my colleague), that I don't have to do this (made a trip to the server), I can just delete the record from the cursor. However, as you know, with SET DELETED ON the deleted records act as a filter and then we have all this weird behavior of the scrollbar. I have a possible solution in mind - in the DeleteRecord method after I deleted records select them to a temp cursor, zap the original cursor and append from the temp... May be I should try it..
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform