home *** CD-ROM | disk | FTP | other *** search
- /* Get name and number of box. The user data will only be present if it has been put in the box by a genie.
- Written by Don Cox */
-
- trace n
- signal on error
- signal on syntax
-
- address command
- call SafeEndEdit.rexx()
- address command
- call SafeEndEdit.rexx()
-
- box=ppm_ClickOnBox("Click on box to be identified")
- if box=0 then exit_msg("No box selected")
- boxname = ppm_GetBoxName(box)
- if boxname = "" then boxname = "(Not named)"
- thisbox = ppm_BoxNum(box)
- udata = ppm_GetBoxUserData(box)
- if udata = "" then udata = "None"
-
- call exit_msg("Name: "boxname" Number: "box" User Data: "udata))
-
- end
-
- error:
- syntax:
- do
- exit_msg("Genie failed due to error: "errortext(rc))
- end
-
- exit_msg:
- do
- parse arg message
- if message ~= "" then
- call ppm_Inform(1,message)
- call ppm_ClearStatus()
- call ppm_AutoUpdate(1)
- exit
- end