home *** CD-ROM | disk | FTP | other *** search
- /* $Revision Header built automatically *************** (do not edit) ************
- **
- ** © Copyright by Dirk Federlein
- **
- ** File : export_dfa.dfa
- ** Created on : Monday, 04.04.94 16:25:47
- ** Created by : Dirk Federlein
- ** Current revision : V2.0
- **
- **
- ** Purpose
- ** -------
- **
- ** Exports marked addresses to another DFA address file.
- **
- ** Important: Exports from DFA V2.0 file format to DFA V2.0 format only !!!
- **
- ** Notice that this new file WILL be compatible to the DFA V2.0
- ** format and can be loaded as usual using the "Open"
- ** Menu item of DFA V2.0 (and up).
- **
- ** This script was done, because it is not possible, to save part
- ** of the stored addresses to another file directly out of DFA up to now.
- **
- **
- ** Revision V2.0
- ** --------------
- ** created on Monday, 04.04.94 16:25:47 by Dirk Federlein. LogMessage :
- ** --- Initial release ---
- **
- *********************************************************************************/
-
- options results
-
- tabchar = '09'X
- cr = '0A'X
-
- exportfile = 't:dfa_dfa.export'
-
- if ~show(ports, DFA) then
- do
- exit 0
- end
-
-
- if open('exfh',exportfile,'W') then
- do
- address 'DFA'
-
- /* --- File header. Format revision 1.5 ! --------------------------- */
-
- writeln('exfh', 'DFAddress1.5')
-
- /* --- Write empty Templates ---------------------------------------- */
-
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', '00000000'||cr)
- writech('exfh', (cr))
- writech('exfh', (cr))
- writech('exfh', (cr))
-
- FIRST STEM ADR.
-
- if ADR.ADDRESS.24 = 0 then
- NEXTSEL STEM ADR.
-
- do while RC = 0
-
- /* Notice that the logical and the physical order differs */
- /* because of compatibility to former versions of DFA */
-
- writech('exfh', ADR.ADDRESS.2||cr ) /* Name */
- writech('exfh', ADR.ADDRESS.1||cr ) /* First name */
- writech('exfh', ADR.ADDRESS.4||cr ) /* Street */
- writech('exfh', ADR.ADDRESS.5||cr ) /* ZIP */
- writech('exfh', ADR.ADDRESS.6||cr ) /* City */
- writech('exfh', ADR.ADDRESS.8||cr ) /* Country */
- writech('exfh', ADR.ADDRESS.9||cr ) /* Birthday */
- writech('exfh', ADR.ADDRESS.10||cr ) /* Phone */
- writech('exfh', ADR.ADDRESS.12||cr ) /* EMail 1 */
- writech('exfh', ADR.ADDRESS.13||cr ) /* EMail 2 */
- writech('exfh', ADR.ADDRESS.14||cr ) /* EMail 3 */
- writech('exfh', ADR.ADDRESS.15||cr ) /* Comment */
- writech('exfh', ADR.ADDRESS.24||cr ) /* Selected */
- writech('exfh', ADR.ADDRESS.0||cr ) /* Salutation */
- writech('exfh', ADR.ADDRESS.11||cr ) /* Fax */
-
- /* Group flags */
-
- writech('exfh', ADR.ADDRESS.16||ADR.ADDRESS.17||ADR.ADDRESS.18||ADR.ADDRESS.19||ADR.ADDRESS.20||ADR.ADDRESS.21||ADR.ADDRESS.22||ADR.ADDRESS.23||cr )
-
- writech('exfh', ADR.ADDRESS.3||cr ) /* c/o */
- writech('exfh', ADR.ADDRESS.7||cr ) /* State */
- writech('exfh', ADR.ADDRESS.25||cr ) /* External file */
-
- NEXTSEL STEM ADR.
- end
-
- close ('exfh')
- end
-
- exit
-