home *** CD-ROM | disk | FTP | other *** search
- ' This is the fifth macro in the 600 series,
- '
- ' It prompts users for the data, and saves the results to the
- ' data file, and the other programs use these values as defaults.
- '
- ' This macro changes user defaults for the area boxes.
- '
- ' Prompt user for Additional Length
- Sys$(41) = "Add to Length Meters? . . ."
- Input "How Much Additional Length? . . . (Enter for None)", AddLen
- '
- ' Check for Exit Condition on Input box
- if Sys(999) = 1 then
- Message "Program Stopped by User."
- End
- endif
- ' Prompt user for text height
- Sys$(41) = "Text Height . . ."
- Input "Enter the Text Height for the Info Box . . . (Enter = 1)", TH
- ' Check for Exit Condition on Input box
- if Sys(999) = 1 then
- Message "Program Stopped by User."
- End
- endif
- ' Check for valid entries
- if TH = 0 then TH = 1
-
- ' Prompt user for Panel Reduction
- Sys$(41) = "Panel Subtraction . . ."
- Input "Subtract how many Panels?, (Press Enter for None)", PanNum2
- ' Check for Exit Condition on Input box
- if Sys(999) = 1 then
- Message "Program Stopped by User."
- End
- endif
- ' # of Panels per Carton based on Room Type
- Sys$(41) = "Panels per Carton. . ."
- Input "Panels per Carton?, (Press Enter = 10)", PanNum4
- ' Check for Exit Condition on Input box
- if Sys(999) = 1 then
- Message "Program Stopped by User."
- End
- endif
- Precision 0
- if PanNum4 = 0 then PanNum4 = 10
- Close #1
- open "o", 1, "*\sample macros\600.txt"
- ' Write Values from ABOVE to file
- Print #1, AddLen
- Print #1, TH
- Print #1, PanNum2
- Print #1, PanNum4
- ' Close ASCII text file
- Close #1
- '
-