Article ID: 190066
Article Last Modified on 5/10/2003
File Extension Comment ----------------------------------------------------------------------- Table .dbf Present for all tables. Memo .fpt Present only if table has Memo or General fields. Index .cdx Present only if table has index tags.When a table is opened (with a USE command), the .dbf file opens. The .fpt and .cdx files are also opened if they exist, and they must be open for the USE command to succeed.
SET EXCLUSIVE OFF
SET MULTILOCKS ON
SET REPROCESS TO 5
IF NOT FILE('MUTest.DBC')
WAIT WINDOW "Creating test data..." NOWAIT
CREATE DATABASE MUTest
CREATE TABLE MUTable (IntFld I, MemoFld M)
APPEND BLANK
CLOSE DATABASE
ENDIF
WAIT WINDOW "Opening database..." NOWAIT
OPEN DATA MUTest SHARE
WAIT WINDOW "Opening table..." NOWAIT
USE MUTable IN 0 SHARE
WAIT CLEAR
SELECT MUTable
LOCATE
BEGIN TRANSACTION
REPLACE MemoFld WITH sys(3)
=MESSAGEBOX('Start another instance of Visual FoxPro and run ;
this program again. Observe that the USE statement causes ;
the "Record not available...please wait." scrolling message ;
to appear when attempting to open the table.', 16)
ROLLBACK
CLOSE DATABASE
SET EXCLUSIVE OFF
SET MULTILOCKS ON
SET REPROCESS TO 5
IF NOT FILE('MUTest.DBC')
WAIT WINDOW "Creating test data..." NOWAIT
CREATE DATABASE MUTest
CREATE TABLE MUTable (IntFld I, MemoFld M)
APPEND BLANK
CLOSE DATABASE
ENDIF
WAIT WINDOW "Opening database..." NOWAIT
OPEN DATA MUTest SHARE
WAIT WINDOW "Opening table..." NOWAIT
USE MUTable IN 0 SHARE
WAIT CLEAR
SELECT MUTable
=CURSORSETPROP('Buffering', 5)
LOCATE
REPLACE MemoFld WITH sys(3)
BEGIN TRANSACTION
=TABLEUPDATE(.T.)
=MESSAGEBOX('Start another instance of Visual FoxPro and run ;
this program again. The second instance will open the table ;
without the scrolling message', 16)
ROLLBACK
CLOSE DATABASE
Additional query words: kbVFp600 kbVFp500a kbVFp300b kbDatabase kbXBase kbVFp600fix kbVFp500abug kbVFp300bbug kbDatabase kbXBase
Keywords: kbbug kbfix kbprb KB190066