Article ID: 186138
Article Last Modified on 7/15/2004
USE Myview1
USE Myview2 in 0
m.Handle = CursorGetProp('ConnectHandle','Myview1')
=SQLSETPROP(m.Handle,'Transaction',2)
This code gets the connection handle from the cursor and sets the
Transaction property to two (2), which is manual mode. This mode allows
you to use the SQLCOMMIT or SQLROLLBACK functions.
=Tableupdate(1,.t.,'Myview1')
=Tableupdate(1,.t.,'Myview2')
=SQLCommit(m.Handle)
=Requery('Myview1')
=Requery('Myview2')
You can replace the SQLCommit with SQLRollback and see the data go back
to its original value.Visual FoxPro Developer's Guide, Chapter 8, "Defining a Connection"; "Creating Views"
Visual FoxPro Online Help; search on "View Designer"; topic: "Update Tab"
Additional query words: kbDSupport kbDSE kbnokeyword
Keywords: kbhowto KB186138