Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffering
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01223819
Message ID:
01223824
Vues:
17
>Problem when buffering
>
>All cursors are in form1 as buffermodeoverride = 4
>
>I press a buttom and go to form2 where a grid is
>
>There no cursor in form2
>
>I modify data in form2 GRID and then go back to form1
>
>In form1 I press a button save
>
>When I close all forms and open forms again, GRID in form 2 is not changed
>
>I open table with use and its not changed
>
>Below is button.CLICK
>
>SELECT ITENS
> TABLEUPDATE ()
> SELECT AP
> TABLEUPDATE ()
> SELECT cl
> TABLEUPDATE ()
> SELECT invetory
>TABLEUPDATE()
>
>
>
>
>Moises

Moises,
Always use ALL parameters for TableUpdate() or Tablerevert() function. Also ALWAYS check WHY these functions didn't work:
IF NOT TABLEUPDATE(1, .t., [ITENS])
  AERROR(laError)
  MessageBox([Can not update ITENS : ] + laError[1,2])
ENDIF
>  SELECT AP
IF NOT TABLEUPDATE(1, .t., [Ap])
  AERROR(laError)
  MessageBox([Can not update AP : ] + laError[1,2])
ENDIF

IF NOT TABLEUPDATE(1, .t., [C1])
  AERROR(laError)
  MessageBox([Can not update C1 : ] + laError[1,2])
ENDIF

IF NOT TABLEUPDATE(1, .t., [invetory])
  AERROR(laError)
  MessageBox([Can not update invetory : ] + laError[1,2])
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform