home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
bazy
/
dfa_birthdays
/
english
/
dfa
/
rexx
/
duplicate
< prev
Wrap
Text File
|
1999-09-14
|
2KB
|
47 lines
/* duplicate for DFA
** by Ralf Keber
** 14.07.97
**
** Discription
** -------
** a simple function:
** the current address is duplicated
**
*************************************/
quote = '22'X
CR = '0A'X
options results
if ~show(ports, DFA) then exit
if ~show('L',"rexxreqtools.library") then addlib('rexxreqtools.library',0,-30,0)
fonttag="rt_font=courier.font/13"
address 'DFA' GETCURRENT STEM P.
text=P.ADDRESS.1||" "||P.ADDRESS.2
if RC ~= 0 then exit
call rtezrequest( text||CR||"duplicate?", "yes|no", , fonttag)
if result=0 then exit
FLAGSTRING = ""
if p.ADDRESS.16=1 then FLAGSTRING = FLAGSTRING 'GROUP1'
if p.ADDRESS.17=1 then FLAGSTRING = FLAGSTRING 'GROUP2'
if p.ADDRESS.18=1 then FLAGSTRING = FLAGSTRING 'GROUP3'
if p.ADDRESS.19=1 then FLAGSTRING = FLAGSTRING 'GROUP4'
if p.ADDRESS.20=1 then FLAGSTRING = FLAGSTRING 'GROUP5'
if p.ADDRESS.21=1 then FLAGSTRING = FLAGSTRING 'GROUP6'
if p.ADDRESS.22=1 then FLAGSTRING = FLAGSTRING 'GROUP7'
if p.ADDRESS.23=1 then FLAGSTRING = FLAGSTRING 'GROUP8'
ADDRESS 'DFA' 'NEW' 'SALUTATION='quote||P.ADDRESS.0||quote 'FIRST='quote||P.ADDRESS.1||quote 'NAME='quote||P.ADDRESS.2||quote 'CO='quote||P.ADDRESS.3||quote 'STREET='quote||P.ADDRESS.4||quote 'ZIP='quote||P.ADDRESS.5||quote 'CITY='quote||P.ADDRESS.6||quote 'STATE='quote||P.ADDRESS.7||quote 'COUNTRY='quote||P.ADDRESS.8||quote 'BIRTHDAY='quote||P.ADDRESS.9||quote 'PHONE='quote||P.ADDRESS.10||quote 'FAX='quote||P.ADDRESS.11||quote 'EMAIL1='quote||P.ADDRESS.12||quote 'EMAIL2='quote||P.ADDRESS.13||quote 'EMAIL3='quote||P.ADDRESS.14||quote 'COMMENT='quote||P.ADDRESS.15||quote 'EXTERNAL='quote||P.ADDRESS.25||quote FLAGSTRING
ADDRESS 'DFA' SORT
exit