VIEW - View a File in Browse Mode

Syntax


VIEW

[ file-name  | * ]


[ .Profile-name ]

       

Operands


file-name | *

The name of the file to be viewed.


If a single * is entered, it requests the filename to be fetched from the current clipboard contents.


.Profile-name

This optional operand allows you to specify an overriding Profile to be used for the View session.  It simply consists of the name of the desired Profile, preceded by a . (period)


Abbreviations and Aliases


VIEW can also be spelled as V

Description


The VIEW command loads a file into the work space for browsing.  If no file-name operand is specified, a standard Windows File Open Dialog will be presented for you to select a file.  


Starting in version 8.1, BROWSE was changed to not allow you to make any modifications to the file.  Primary commands, Line Commands and normal typing which would modify the file's data are suppressed.  




In VIEW mode, you cannot SAVE the file, nor will AUTOSAVE cause the file to be saved.  If you have altered the data, and wish to save the altered copy, you can use the CREATE or SAVEAS commands to save the data under a different file name.  


Sometimes in View mode you may find that you have actually made changes (since it is SO similar to Edit) and then when you END the session, your changes were just thrown away.   You can protect against this with the Options -> General setting for Warn on modified View file?  This will cause a prompt if you are closing a modified View session and give you a chance to save the data before exiting.


In addition, when you modify a View file, the word View in the left-hand Status Bar box will be displayed as View to remind you it has been modified.


If the current working Tab contains data, a new Tab will be opened to hold the View session; otherwise the current Tab will be used.


Default Directory


When no operand at all or only a simple unqualified filename is provided for the VIEW command, the default directory used for searching for the file or for the file open dialog's starting directory will be determined as follows:




Overriding Profile


When you wish to use a different Profile from the one indicated by the file's extension, simply  provide the alternate profile name, preceded by a period, on the command line.     For example to View  MYSOURCE.BAS using the TXT profile the command would be


VIEW MYSOURCE.BAS .TXT


The use of the alternate profile is for the duration of this session only, it does not alter any permanent Profile processing.


Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator