home *** CD-ROM | disk | FTP | other *** search
- /* ==================================================== */
- /* Final Data Arexx Macro - Make Name/Address File */
- /* This macro creates a new 'standard' name and address */
- /* file which is used by several other macros named: */
- /* STANDARDLABELS...*/
- /* */
- /* */
- /* */
- /* */
- /* by Dick Skraly - SoftWood, Inc. */
- /* $VER: FDNameAddr 1.2 (22.7.94) */
- /* ==================================================== */
-
- /* ----- Initialization -----*/
- Options Results
- IF ( ADDLIB("rexxsupport.library", 0, -30, 0) = FALSE) THEN EXIT 20
- HOST=ADDRESS()
- ADDRESS VALUE HOST
- HOSTleft=LEFT(HOST,7)
- if HOSTleft ~== 'FINALD.' then EXIT 20
-
- /* ----- Make sure this is what user wants to do ----- */
- /* ShowMessage 2 0 '"Create a new standard" "Name/Address database?" "" "Continue?" "Cancel" ""' */
- /* if Result = 2 then exit 0 */
-
- /* ----- Create and address the new window ----- */
- i=1
- do while SHOWLIST('P',HOSTleft||i)
- i=i+1
- end
- NEWHOST = HOSTleft||i
- New
-
- ADDRESS command
- WaitForPort NEWHOST
- ADDRESS VALUE NEWHOST
-
- /* ----- Make new fixed Columns ----- */
- InitNewColumn TEXT "Zip Code"
- AddNewColumn
- InitNewColumn TEXT "State"
- AddNewColumn
- InitNewColumn TEXT "City"
- AddNewColumn
- InitNewColumn TEXT "Address"
- AddNewColumn
- InitNewColumn TEXT "Last Name"
- AddNewColumn
- InitNewColumn TEXT "First Name"
- AddNewColumn
-
- NewRow
-
- exit RC /****** end of FDNameAddr.rexx ********************/