[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

886.0. "Insert document title in WPS-PLUS" by SWETSC::WESTERBACK (Mimsy were the borogroves) Wed Jun 17 1992 17:31

    A customer wants her users to be able to do the following:
    
    When working in a WPS-PLUS document, press a key and get the
    title of the current document inserted. I.e. OA$CURDOC_TITLE.
    
    Is it possible? Some kind of UDP or SCRIPT script perhaps?
    
    Hans
T.RTitleUserPersonal
Name
DateLines
886.1An ugly approachSANFAN::LESLIE_DAGreetings & SolutionsWed Jun 17 1992 22:4319
    A customer of mine does this kind of thing *a lot* and here's the ugly
    way they do it:
    
    TITLE.UDP
    	.function merge title.blp, title.txt
        .function dump title.txt
        .process "{GOLD G}VMS{CR}TITLE.TXT{CR}"
        .function delete title.txt
    
    TITLE.BLP
        <oa$curdoc_title>
    
    There may be some better ways to do this, but this appears to work
    
    HTH,
Dan
    
    PS I just thought of a better way, try (in TITLE.UDP) a single line:
       .process oa$curdoc_title
886.2.PROCESS OA$CURDOC_TITLEUTRTSC::BOSMANWe&#039;re just sugar mice in the rainThu Jun 18 1992 08:263
    Just put .PROCESS OA$CURDOC_TITLE in your UDP.
    
    Sjaak.