home *** CD-ROM | disk | FTP | other *** search
- /*
- @N
-
- This Genie allows you to issue AREXX commands to PDraw directly. Recommended for advanced users only.
- */
-
- signal on error
- signal on syntax
-
- call pdm_AutoUpdate(0)
- defvalue = getclip(pdm_defval)
- command = pdm_GetUserText(40, "Enter Command :"defvalue)
- if command = '' then exit_msg()
- call setclip(pdm_defval, command)
-
- interpret "returnval = "command
- call exit_msg(command" = "returnval)
-
- error:
- syntax:
- do
- if rc = 16 then exit_msg(command)
- exit_msg(command ": "errortext(rc))
-
- end
-
-
- exit_msg:
- do
- parse arg message
-
- call pdm_updatescreen(1)
- if message ~= '' then call pdm_Inform(0, message)
- call pdm_AutoUpdate(1)
- exit
- end