home *** CD-ROM | disk | FTP | other *** search
- proc genaddr:
- rem open "loc::a:\dat\nwgc.dbf",a,f1$,f2$,f3$,f4$,f5$,f6$,f7$,f8$,f9$,f10$,f11$,f12$,f13$,f14$
- rem open "\dat\nwgc.dbf",a,f1$,f2$,f3$,f4$,f5$,f6$,f7$,f8$,f9$,f10$,f11$,f12$,f13$,f14$
- rem \dat\Address.dbf is the name of the new record file for your
- rem address book. You may use any name you wish.
- rem You do need to retain the 15 field names, f1$ to f$15.
- open "\dat\Address.dbf",b,f1$,f2$,f3$,f4$,f5$,f6$,f7$,f8$,f9$,f10$,f11$,f12$,f13$,f14$,f15$
- use a
- do
- rem f1$ is the group field, personal or work
- b.f1$="personal"
- rem f2$ is the name field
- b.f2$=a.f1$
- rem f3$ is the company or second name field
- b.f3$=""
- rem f4$ is the persons position
- b.f4$=""
- rem f5$ is first line of their address
- b.f5$=a.f5$
- rem f6$ is the second line of their address
- b.f6$=""
- rem f7$ is the town
- b.f7$=a.f6$
- rem f8$ is the county
- b.f8$=""
- rem f9$ is the postcode
- b.f9$=a.f7$
- rem f10$ is home telephone
- b.f10$=a.f2$
- rem f11$ is work telephone
- b.f11$=a.f3$
- rem f12$ is fax number
- b.f12$=a.f4$
- rem f13$ is mobile telephone
- b.f13$=""
- rem f14$ is first line of note
- b.f14$=a.f8$
- rem f15$ is second line of note
- b.f15$=""
- use b
- append
- use a
- next
- until eof
- close
- close
- ENDP
-