home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
- PRODUCT : TURBO PASCAL DATABASE TOOLBOX NUMBER : 328
- VERSION : 1.21
- OS : ALL
- DATE : July 28, 1986 PAGE : 1/2
- TITLE : TBDEMO UPDATE
-
-
-
-
- The following modifications enable TBDEMO to add and delete
- records correctly. Note that these code changes will update your
- version of the Turbo Pascal Database Toolbox to version 1.21A.
- Please update the version numbers at the top of each toolbox
- module on your disk and be sure to indicate which version number
- of the software you are using in any correspondence with Borland
- International.
-
- 1. Make a backup copy of the file TBDEMO.PAS.
- 2. Load the file TBDEMO.PAS into the Turbo Pascal editor.
- 3. In the procedure AddCustomer, change the following:
- .
- .
- .
- Response : char;
- begin
- repeat
- InputInformation(Customer);
- FindKey(CodeIndx,RecordNumber,Customer.CustCode);
- If not OK then
- .
- .
- .
- Change to:
- .
- .
- .
- Response : char;
- TempCode : string[15]; { Ver. 1.21A Addition }
- begin
- repeat
- InputInformation(Customer);
- TempCode := Customer.CustCode; { Ver. 1.21A Addition }
- FindKey(CodeIndx,RecordNumber,TempCode);
- { Ver. 1.21A Modification }
- If not OK then
- .
- .
- .
- 4. In the procedure DeleteCustomer, change the following:
- .
- .
- .
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PRODUCT : TURBO PASCAL DATABASE TOOLBOX NUMBER : 328
- VERSION : 1.21
- OS : ALL
- DATE : July 28, 1986 PAGE : 2/2
- TITLE : TBDEMO UPDATE
-
-
-
-
- Write(' Enter code of customer to be deleted: ');
- Readln(CustomerCode);
- FindKey(CodeIndx,RecordNumber,Customer.CustCode);
- if OK then
- begin
- DeleteKey(CodeIndx,RecordNumber,Customer.CustCode);
- DeleteRec(CustFile,RecordNumber);
- .
- .
- .
- Change to:
- .
- .
- .
- Write(' Enter code of customer to be deleted: ');
- Readln(CustomerCode);
- FindKey(CodeIndx,RecordNumber,CustomerCode);
- { Ver. 1.21A Modification }
- if OK then
- begin
- DeleteKey(CodeIndx,RecordNumber,CustomerCode);
- { Ver. 1.21A Modification }
- DeleteRec(CustFile,RecordNumber);
- .
- .
- .
- 5. At the top of the file update the modification date
- 6. Save the file.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-