Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor in a grid
Message
De
06/03/2007 14:26:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
06/03/2007 13:10:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01201093
Message ID:
01201175
Vues:
31
>>>What can be simpler than zapping a cursor and appending into it from the temp one?
>>
>>This:
>>
>>thisform.grid.recordsource = ""
>>
>>* Create new cursor...
>>
>>thisform.grid.recordsource = cursor
>
>And then you have to add a ton of code to get the grid to behave like it used to do? No this is NOT the way, Terry. But this is:
>
>Select whatever into cursor curtemp
>Select Gridcursor
>zap
>appe from dbf('curtemp')
>yourgrid.refresh()
Or, for brevity's sake
zap in gridcursor
insert into gridcursor select whatever from wherever
Though this method requires field for field match between gridcursor and the select statement. One may get around with a field list, though.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform