Sie sind auf Seite 1von 2

1.

set default to - Assign Default Drive/Directory

2. Set Default To Drive:Path <-- sets the default directory to the specified directory. A database
application is generally formed by many files. In order to avoid problems while learning FoxPro, it
is essential to place all of the files in an application in the same directory. Setting the default
directory should be one of the first things you do. Create the directory using Windows.

create FileName <-- create a new database file. The create command dumps you into the file creation
program where you are given the opportunity to determine the database structure/layout. You will select
field names, field types (Character, Logical, Date, Currency, Numeric, and Memo, etc.), and field size.

Create Client <-- create a database, called VFP9.0EINSTEIN2015 in the default directory.

<-- create a database, called EINSTEINDATA.DBF, You can establish the directory path, but it is much
better to set the default directory and allow all files to be automatically grouped together in this default
directory

AFTER creating database.minimize the Database window.


When a new database is constructed, each field must have a symbolic name by which it can be
referenced. These field names are 1-10 characters in length. The field name may be constructed from
any characters in the set {A,B,C,...,Z,Underscore(_)}. Field names are not case sensitive.

Associated with each field will be a datatype. The datatypes that we will explore will be character,
numeric, logical, date, and memo. Select a datatype that best fits the type of information that you plan to
process. The character and numeric datatypes require that you specify the number of characters that are
to be stored. The Client.DBF has been created below.

After creating TABLE..click DATA from the Project manager.


Click FORM choose NEW WIZARD. Create FORM using data from tables created.

Das könnte Ihnen auch gefallen