As of version 1.27, DLG has a companion library to dlg.library which provides the sysop with as much of
dlg.library's functionality as makes sense to implement, as well as those commands available through DLGCron,
DLGMail, ResMan, and the online interface DLGRX.
To use dlgrexx.library, you must first add it to an internal list that Arexx maintins. There are two ways to accomplish this: using the Arexx AddLib function within your Arexx script, or use the AmigaDOS LoadResource command in your s:startup-sequence or s:user-startup batch files. While LoadResource is more convenient, using AddLib is safer and is the recommended method.
/* Adding DLGrexx.library to the internal Arexx list */ /* Put this at the start of your Arexx script. */ Options Results /* Check to see if library is present. Add it if it is not. */ if ~show(l, "dlgrexx.library") then do if ~addlib("dlgrexx.library", 0, -30, 0) then do say "Could not load dlgrexx.library." exit(20) end end
LoadResource Libs:dlgrexx.library
LoadResource Libs:dlgrexx.library LOCK