Progress
Language Tutorial
for Windows
Creating Records
When you create a record, you are directly manipulating the database. Progress creates a new empty record and copies that record to the record buffer in EXCLUSIVE-LOCK state. The new record may not be entirely empty, however. Depending on your database schema, some of the fields may have default initial values or values generated by sequences and database triggers. Figure 8–14 shows the data movement of CREATE.
Figure 8–14: Data Movement with the CREATE Statement
![]()
This is the syntax for the CREATE statement.
As soon as you create a record, you’ll want to fill it with data. One way to acquire new data for the record is to use a dialog box with an UPDATE statement.
Follow these steps for a demonstration of creating records:
Here is the code that created the display:
These notes help to explain the code:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |