Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confused about tableupdate....using view in grid
Message
 
À
17/08/1998 16:32:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00127443
Message ID:
00127615
Vues:
36
>Josh,
>
>Sorry, I forgot to mention that I changed that code. I've been trying different things trying to get this to work. Currently I have the buffering setup in the load event of the form right after the table is open, before the view is created. It still only updates the single detail record instead of the view/grid records.
>
>This is the code I execute when the update all button is pressed:
>
>SELECT grid
>GO TOP IN grid
>DO WHILE NOT EOF()
> REPLACE noshow WITH "X"
> SKIP 1 IN grid
>ENDDO
>GO TOP IN grid
>ThisForm.Grid1.Refresh
>
>SELECT gldent
>REPLACE gldent.noshow WITH grid.noshow
>Tableupdate(.T.)
>
>With all the changes I tried, I'm back to REPLACE updating the single detail record, REPLACE ALL updates the entire table.

Trisha,
Are you using VFP5? If so, check the parameters of TableUpdate(). You will be able to get some feedback about what you're doing that way.

Also, if GRID is a parameterized view based on GLDENT, (I couldn't tell for sure) then after you replace the data in GRID just do a TableUpdate() to update the corresponding records in GLDENT.
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform