home *** CD-ROM | disk | FTP | other *** search
-
- { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | Turbo Data Entry Screen Generated by ScreenGen (C) Copyright 1988 |
- | Tika Software Co. All Rights Reserved LFB |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
-
-
- {------------------------------------------------------------------------
- | mailer_screen |
- ------------------------------------------------------------------------}
-
- procedure mailer_screen( display_status : short_string );
-
-
- var XZZ18W : byte;
- var XZZ18W_start : long_string;
- begin
-
- with mailer_data do begin
- video( reverse );
-
- { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | Output Screen (Writexy() statements.) |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
-
- if pos('\1', display_status) <> 0 then begin
- writexy(1, 1, no_color, 'MAILER Copyright (C) November, 1987 Alared Records on File ');
- writexy(1, 2, no_color, '');
- writexy(1, 3, no_color, 'Company : ');
- writexy(1, 5, no_color, 'Contact : ');
- writexy(1, 6, no_color, 'Street 1 : ');
- writexy(1, 7, no_color, 'Street 2 : ');
- writexy(1, 8, no_color, 'City : ');
- writexy(1, 9, no_color, 'State : ');
- writexy(1, 10, no_color, 'Zip : ');
- writexy(1, 11, no_color, '');
- writexy(1, 12, no_color, 'Title : Phone : - - -Ext: ');
- writexy(1, 14, no_color, 'Contact Type : ');
- writexy(1, 16, no_color, 'Additional : ');
- writexy(1, 17, no_color, 'Notes : ');
- writexy(1, 18, no_color, '& : ');
- writexy(1, 19, no_color, 'Information : ');
- writexy(1, 22, no_color, '──────────────────────────────────────────────────────────────────────────────');
- end; {if}
-
- { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | Echo the variable values to the screen. |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
-
- if pos('\2', display_status) <> 0 then begin
- writexy(74,1, reverse, format(itoa( usedrecs( mailer_file )),'@@@@@', junkbyte));
- writexy(17,3, bright, format(company,
- '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(17,5, bright, format(contact,
- '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(17,6, dim, format(street1,'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(17,7, no_color, format(street2,'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(17,8, no_color, format(city,'@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(17,9, no_color, format(state,'@@', junkbyte));
- writexy(17,10, no_color, format(zip,'@@@@@@@@@@', junkbyte));
- writexy(17,12, no_color, format(title,'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(58,12, no_color, format(phone,'@@@-@@@-@@@@-Ext:@@@@', junkbyte));
- contact_type := get_menu(
- '\1Vendor\2Client\3Prospect\4Other',
- '',
- contact_type,'\px17\py14\d');
- writexy(17,16, no_color, format(notes1,
- '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(17,17, no_color, format(notes2,
- '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(17,18, no_color, format(notes3,
- '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- writexy(17,19, no_color, format(notes4,
- '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@', junkbyte));
- end {if};
-
- { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | Accept Variable Input. |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
-
- if pos('\index', display_status) <> 0 then
- XZZ18W:= search_index +17
- else
- if get_option( display_status, '\start', XZZ18W_start) then
- XZZ18W := atoi(XZZ18W_start)
- else XZZ18W := 1;
-
- if pos('\3',display_status) <> 0 then
- repeat
- if pos('\index', display_status) <> 0 then begin
- message('SEARCH:Cursor Keysto Change Indices,<RETURN>to accept',1);
- search_index := XZZ18W-17;
- end; {if}
-
- case XZZ18W of
-
- 2,19: begin
- company := get_string( company,'\x17\y3\l48\g\voB');
-
- if pos('\index', display_status) <> 0 then
- XZZ18W:= vieworder('',XZZ18W)
- else XZZ18W := vieworder( '\dc3', XZZ18W);
- end; {case 2}
-
- 3,20: begin
- message('CONTACT:Last, First <---> Example : Jones, Mr. Jim J.',1);
- contact := get_string( contact,'\x17\y5\l48\g\voB');
-
- if pos('\index', display_status) <> 0 then
- XZZ18W:= vieworder('',XZZ18W)
- else XZZ18W := vieworder( '\dc4\uc2', XZZ18W);
- end; {case 3}
-
- 4: begin
- street1 := get_string( street1,'\x17\y6\l30\voD');
- XZZ18W := vieworder( '\dc5\uc3', XZZ18W);
- end; {case 4}
-
- 5: begin
- street2 := get_string( street2,'\x17\y7\l30');
- XZZ18W := vieworder( '\dc6\uc4', XZZ18W);
- end; {case 5}
-
- 6: begin
- city := get_string( city,'\x17\y8\l25');
- XZZ18W := vieworder( '\dc7\uc5', XZZ18W);
- end; {case 6}
-
- 7: begin
- state := get_string( state,'\x17\y9\l2\u');
- XZZ18W := vieworder( '\dc8\uc6', XZZ18W);
- end; {case 7}
-
- 8: begin
- zip := get_string( zip,'\x17\y10\l10');
- XZZ18W := vieworder( '\dc9\uc7', XZZ18W);
- end; {case 8}
-
- 9: begin
- title := get_string( title,'\x17\y12\l30');
- XZZ18W := vieworder( '\dc11\uc8', XZZ18W);
- end; {case 9}
-
- 10: begin
- phone := get_string( phone,'\x58\y12\f@@@-@@@-@@@@-Ext:@@@@');
- XZZ18W := vieworder( '\uc8', XZZ18W);
- end; {case 10}
-
- 11: begin
- contact_type := get_menu(
- '\1Vendor\2Client\3Prospect\4Other',
- '',
- contact_type,'\px17\py14');
- XZZ18W := vieworder( '\dc12\uc9', XZZ18W);
- end; {case 11}
-
- 12: begin
- notes1 := get_string( notes1,'\x17\y16\l62');
- XZZ18W := vieworder( '\dc13\uc11', XZZ18W);
- end; {case 12}
-
- 13: begin
- notes2 := get_string( notes2,'\x17\y17\l62');
- XZZ18W := vieworder( '\dc14\uc12', XZZ18W);
- end; {case 13}
-
- 14: begin
- notes3 := get_string( notes3,'\x17\y18\l62');
- XZZ18W := vieworder( '\dc15\uc13', XZZ18W);
- end; {case 14}
-
- 15: begin
- notes4 := get_string( notes4,'\x17\y19\l62');
- if in_keycode <> k_up_cursor then exit;
- XZZ18W := vieworder( '\uc14', XZZ18W);
- end {case 15}
-
- else XZZ18W := vieworder( '', XZZ18W );
- end; {case}
-
- { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- | Adjust the variable index. |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
-
- case XZZ18W of
- 0..16:
- if XZZ18W > 15 then
- XZZ18W := 1
- else if XZZ18W < 1 then
- XZZ18W := 15;
- 17..33: begin
- if in_keycode = k_cr then exit;
- if XZZ18W > 32 then
- XZZ18W := 18
- else if XZZ18W < 18 then
- XZZ18W := 32;
- end;
- end; {case}
-
- until in_keycode = k_escape; {perpetual loop}
- end; {with}
- end; {procedure}
-