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 |
The customer has a question regarding the fourth parameter of the EDIT function in ALL-IN-1 V3.0. This parameter is supposed to be an editor specific parameter and is explained in the Applicaiton Programming Reference Volume 2 as 'This parameter is an editor-specific parameter to pass along with the editor'. The customer wanted to edit in read mode using the EDT editor. He thought since /READ was a qualifier for the EDIT option in VMS he could use it as the editor-param in the ALL-IN-1 function but it didn't work. The function was something like this: <EDIT #FILENAME,,,"EDT",READ It didn't work. He was able to change the document and save the changes which is not what he wanted to happen. He ended up using the LIST function but he wants to know more about this parameter. Can anyone give us an example? Thanks, Kathy
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2626.1 | ( 0 to N-1) | AIMTEC::BUTLER_T | Wed Apr 28 1993 18:49 | 13 | |
Kathy is starting from zero (true programmer!), I believe she means the fifth parameter to the edit function. Also, /read is a qualifier not a parameter for edt. The only parameter I can see for edt would be the file-spec. Maybe someone else has more information. Thus, I think the customer already has the best way to do this. HTH, Tim | |||||
2626.2 | Unsupported Answer | AIMTEC::BUTLER_T | Wed Apr 28 1993 19:07 | 19 | |
FWIW: Note this is not supported/documented! V2.4 Will work this way. <get #file = "filename.type" <edit/read_only #file V3.0 <get #file .... <edit/read_only #file this will work but, it will give you the following: Illegal qualifier combination: /OUTPUT=filespec /READ_ONLY. Tim | |||||
2626.3 | The code | IOSG::NEWLAND | Richard Newland, IOSG, REO2-G/L2 | Wed Apr 28 1993 20:19 | 32 |
I've looked at the code for the EDIT function and it accepts the following qualifiers: /APPEND (which is documented in the APR) /READ_ONLY (which is not documented) I can't think of any good reason why /READ_ONLY should not be documented so I've submitted a documentation IPR. The EDIT function is intended to support any editor that is integrated into ALL-IN-1. Therefore some qualifiers or parameters may not be relevant to some editors and will be ignored, or there may detailed differences in the implementation. The /READ_ONLY qualifier is supported as follows: EDT and WPS creates a writeable buffer from which you cannot do a normal exit TPU creates an unmodifiable buffer WPS-PLUS not supported - qualifier is ignored The 'editor-param' parameter can be used to pass additional information to an editor, but only if it supports this parameter. EDT, WPS and WPS-PLUS do not support this parameter. Richard |