Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids & SQL cursors
Message
 
À
18/06/1996 13:32:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00002374
Message ID:
00002518
Vues:
29
>There is a trick in FoxPro Advisor April 1996 page
>28 «Refresh
>Grid.RecordSource» published by Drew Speedie that
>work fine.
>
> The idea is to base a grid on a view, likely a
>parameterized one. When it's time to update the
>view:
>
>=requery()
>your grid and all the objects it contains remain
>INTACT; the displayd data changes.
>
>Since view can only exist in VFP databases, create
>a temporary database, add the view, and delete
>everything when done:
>*form load
>create database temp
>set database to temp
>create sql view...
>* the view is now available to the grid
>*form unload
>use in
>close database temp
>erase temp.dbc
>erase temp.dcx
>erase temp.dct


Ok, think I got all your message! Why create a Temp DBC when you can create a view in the current DBC & delete it when done?

I am still looking at using cursors though!

Thanks
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform