home *** CD-ROM | disk | FTP | other *** search
- {$A+,B+,D-,E-,F-,I-,L-,N-,O-,R-,S-,V-}
- {$M 65520,0,655360}
- Program MathDemo;
-
- Uses CRT,TPDB,TPDBINDX,TPDBDate,TPDBMath;
-
- {Field Field Name Type Width Dec
- 1 NUMBER1 Numeric 8 2
- 2 NUMBER2 Numeric 8 2
- 3 ADD Numeric 8 2
- 4 SUB Numeric 8 2
- 5 MUL Numeric 8 2
- 6 DIV Numeric 8 2
- ** Total ** 49}
-
-
- begin
- DBOpenFile('mathdemo.dbf');
- Zap;
- NewDBRec;
- Repl(1,'101.22');
- {Try inserting different
- values in these two lines.}
- Repl(2,'502.45');
- AddDBRec;
- GetDBRec(1);
- Repl(3,Add(1,2));
- Repl(4,Sub(2,1));
- Repl(5,Mul(1,2));
- Repl(6,Divide(2,1));
- PutDBRec(1);
- GetDBRec(1);
- ClrScr;
- Display;
- CloseDBFile;
- end.