home *** CD-ROM | disk | FTP | other *** search
- /* CloneThisPage - Appends and goes to a clone of the current page, then
- lets the user name it. If the first object on the page is a note, it
- gives the note the same name as the page. This was written to do some
- of the repetitive work in the construction of the ARexx commands
- hyperbook.
-
- (Note that the CP variable refers to a different page after the call
- to gotopage() than it did before.)
- */
-
- CP = ':'
-
- call gotopage(clonepage(CP, 0))
-
- name = inputstring('Name this page', getname(CP))
-
- call setname(CP, name)
-
- ob = objectnumber(CP, 1)
-
- if length(ob) > 0 then
- if gettype(ob) == 'Note' then
- call setname(ob, name)
-