Article ID: 155528
Article Last Modified on 7/13/2004
? CREATEOFFLINE("MYVIEW")
If the command executes successfully, it returns a .T., and now if you
look at the files in the Myoffline directory, you should see three
extra files with the following names:
Myview.dbf
Myview.tbf
Myview.tdx
SET MULTILOCKS ON
OPEN DATABASE MYDBC
USE MYVIEW
BROWSE
Multilocks must be set on in order to use the view. You can look at the
records and modify them.
OPEN DATABASE c:\vfp\samples\data\testdata
USE Customer
? CURSORSETPROP("Buffering",5)
USE Myview ONLINE EXCLUSIVE IN 0
SELECT Myview
? TABLEUPDATE(.T.)
If you BROWSE the Customer table, you should see your changes. You must
open the view with the ONLINE clause, and it must be exclusive in order
to update. Also the table and database the view is representing, in
this case Customer, must be open.
Keywords: kbhowto kbsqlprog kbdatabase KB155528