home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright 1997 SoftLogik Publishing Corporation
- May not be distributed without SoftLogik Publishing Corporation's express written permission
- $VER: Help.rexx 1.0 (11.9.97)
- */
-
- OPTIONS RESULTS
- TRACE OFF
-
- /* Make sure rexx support is opened */
- IF ~SHOW('L','rexxsupport.library') THEN
- CALL ADDLIB('rexxsupport.library',0,-30)
-
- helppath = arg(1)
- href = arg(2)
- anchor = arg(3)
-
-
- if ~show(P, 'HHV') then do
- /* Run help viewer */
- ADDRESS COMMAND
- 'run >nil: pagestream3:hhv SETPATH='helppath
-
- /* Wait until the ARexx port shows up */
- do 20
- if ~show(P, 'HHV') then call delay(50)
- end
-
- /* If the ARexx port didn't show up, alert the user and exit */
- if ~show(P, 'HHV') then do
- EXIT
- end
- ADDRESS 'HHV'
- end
- else do
- ADDRESS 'HHV'
- 'setpath 'helppath
- end
-
- 'screentofront'
- if anchor~='' then href=href'#'anchor
- 'currenturl'
- if (RC = 0) then do
- say 'goto 'href
- 'goto 'href
- end
- else do
- say 'open 'href
- 'open 'href
- end
-