This Technical Information (TI) document describes how to access
a dBase file with the Borland Visual Solutions Pack (BVSP). 
These files can be easily accessed with a few minor changes to 
the CIQRY control. The description is based upon the FirstApp 
example described in the BVSP Users Guide (Refp 39). 

Set up your data source in accordance with the steps outlined in
Chapter 14 ofthe BVSP.

Proceed with the FirstApp example up to the point when you are
setting the properties for the CIQRY control (Ref p49). 

1) Set the ACCESSMODE to "3 - Auto Mode". 

2) Double click the MODEBITMASK property so the SET CURSOR MODE
   dialog appears.
   a) In the CURSOR MODIFICATIONS field check ALLOW INSERTS,
      ALLOW UPDATES and ALLOW DELETES
   b) In the MISC field check ALLOW QUERY BY FORM, ALLOW CURSOR
      BROWSING and FIRST COLUMN IS PRIMARY KEY

3) Follow the steps to generate the STATEMENT using BUILDQUERY
   (Ref p49-51). After the STATEMENT is generated double click on
   the STATEMENT property in the PROPERTIES dialog box. This will
   bring up an SQL STATEMENT dialog with the statement generated 
   by the Visual Query Builder. We will add text here so that our
   data will be sorted when displayed. Type into the text box 
   "ORDER BY ( column name)". For the FirstApp example our column
   name will be Name. You can enter any column name you wish to 
   sort by. The STATEMENT would look like the this: 

SELECT t1.DOCID ,t1.NAME ,t1.PHONE FROM "TEST" t1 ORDER BY (Name)

   Check the OK box.

Proceed with the rest of the FirstApp example as described in the
users guide. The above procedure will allow for the addition of 
insert and delete capabilities to dBase files with and without 
indexes defined.
