home *** CD-ROM | disk | FTP | other *** search
dBase Update | 1992-03-10 | 4.9 KB | 80 lines |
- * dBASE IV .UPD file 8
- CLOSE DATABASES
- SET EXACT ON
- SELECT 1
- USE EMPLOYEE.DBF
- SELECT 2
- USE CODES.DBF
- SET FILTER TO
- GO TOP
- SELECT 2
- USE CODES.DBF
- SELECT 1
- IF network()
- COUNT TO QBE___CNTR
- GO TOP
- ENDIF
- DO WHILE .NOT. EOF()
- IF network()
- IF QBE___CNTR < 1
- ENDIF
- QBE___CNTR = QBE___CNTR - 1
- ENDIF
- SELECT 2
- APPEND BLANK
- REPLACE CITY WITH EMPLOYEE->CITY,CODE WITH ;
- VAL(SUBST(Employee->Phone,2,3))
- SELECT 1
- ENDDO
- SELECT 1
- SET FILTER TO
- SET FIELDS TO
- SET SKIP TO
- SET RELATION TO
- SELECT 1
- SELECT 2
- EMPLOYEE.DBF
- CODES.DBF
- :Employee.dbf*$i
- :LASTNAME*$i
- :FIRSTNAME*$i
- :INITIAL*$i
- :DEPARTMENT*$i
- :EMP_ID*$i
- :PHONE*$i
- :SPECIALTY*$i
- :COMMENTS*$i
- :AWARDS*$i
- :DATE_HIRED*$i
- :DEGREE*$i
- :EXEMPT*$i
- :FULL_TIME*$i
- :LABORGRADE*$i
- :RATE*$i
- :SALARY*$i
- :TITLE*$i
- :YRS_EXPER*$i
- :ADDRESS1*$i
- :ADDRESS2*$i
- :CITY*$i
- :STATE*$i
- :ZIP*$i
- :department+lastname+firstname+initial*$i
- :department+STR(salary,8,2)*$i
- :STR(yrs_exper,4,1)*$i
- :lastname+firstname+initial*$i
- ,xx:town*$i
- ,xx:*$i
- :Codes.dbf*$i
- :CITY*$i
- :CODE*$i
- ,xx:Append*$i
- ,xx:town*$i
- ,xx:newcode*$i
- ,xx:*$i
- ,xx: *$i
- :Calc'd Flds*$i
- :VAL(SUBST(Employee->Phone,2,3))*$i
- ,xx:newcode*$i
- ,xx:
-