Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Requery a 6.0 Grid
Message
 
 
À
20/03/2000 08:43:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00347821
Message ID:
00367006
Vues:
31
You need to assign the Recordsource property of the grid to a cursor with the same structure, perform your requery, then restore the RecordSource property to it's original value.

e.g.

lcAlias = thisform.oGrid.RecordSource
=AFIELDS(laFields, lcAlias)
CREATE CURSOR tmp FROM ARRAY laFields

thisform.oGrid.RecordSource = "tmp"

*---------------------------------*
*-- Requery code would go here --*
*---------------------------------*

thisform.oGrid.RecordSource = lcAlias
thisform.oGrid.Refresh()

USE IN tmp


>When using a grid in VFP 6.0 how do you update a grid record source without disrupting all its properties?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform