Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffering
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01223819
Message ID:
01223824
Views:
21
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform