home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
s1
/
systemvar
/
!SystemVar
/
Docs
/
Manual
next >
Wrap
Text File
|
1996-05-03
|
5KB
|
122 lines
ABOUT THIS PROGRAM
---------------------------------------------------------------------------
Name : SystemVar
Version : 1.01 (03 May 1996)
Purpose : Read/Set/Delete system variables
Author : © Andrew Berry, 1996
Licence : Freeware. Please see conditions at the end of this file.
SystemVar supports Interactive Help.
PURPOSE
---------------------------------------------------------------------------
SystemVar is designed to read, set or delete system variables. This could
be useful to, for example, find the current value of Obey$Dir, or read or
set the RunType of a file.
Some applications set a variable xxx$Loaded to 'Yes' when they start up, so
that two copies of the application aren't loaded at the same time. This is
OK unless the application crashes, leaving xxx$Loaded set to 'Yes', and
leaving you unable to reload the application. Unsetting (deleting) the
variable xxx$Loaded will enable the application to be reloaded.
READING A VARIABLE
---------------------------------------------------------------------------
To read the value of a variable, enter the variable name (for instance
Obey$Dir) into the top writeable icon and click on 'Read Variable'. The
value of the variable will be entered into the second icon, and the
variable type will be entered into the display field in the top right.
If the variable does not exist then a message to inform you of this will
be entered in the value box.
SETTING A VARIABLE
---------------------------------------------------------------------------
To set a variable, enter the variable name into the top icon and press
Return. Select the required variable type by clicking SELECT over the menu
icon (top right) and select a type. The types available are described
below. Finally, enter the required value of the variable into the 'Value'
writeable icon and click 'Set variable'.
UPDATING A VARIABLE
---------------------------------------------------------------------------
To update a variable read it's current value, make any alterations which
are necessary, and then click on 'Set Variable'.
DELETING A VARIABLE
---------------------------------------------------------------------------
To delete a variable enter the variable name in the top writeable icon and
click on 'Delete Variable'. The message 'Deleted' will be entered into the
'Value' box.
VARIABLE TYPES
---------------------------------------------------------------------------
These are described briefly in the PRM, page 1-312.
String - The value will be OS_GSTrans'd immediately
Number - The value is a 4 byte (signed) integer
Macro - The value will be OS_GSTrans'd each time it is used
Expanded - The value will be evaluated as expression using OS_Evaluate-
Expression and is automatically assigned to a number or string
variable, depending in the expression type. For example, if you
give a variable the value "Obey$Dir" and make it a string value
then it will have the value "Obey$Dir", exactly as entered.
However, if you give it the same value but make it an expanded
variable, then it will take the value held by Obey$Dir, ie a
pathname.
HISTORY
---------------------------------------------------------------------------
1.00 (13 Feb 1996) : • The first version - Read, set delete variables.
---------------------------------------------------------------------------
1.01 (03 May 1996) : • Small changes to program and documentation.
DISTRIBUTION NOTES
---------------------------------------------------------------------------
This program is Freeware, NOT public domain. This means that I retain the
copyright but give everyone the right to distribute it by any means, as
long as all files are supplied and I am fully credited.
If you would like to include this program on a magazine cover disc then
please contact me first to obtain the latest version. If you run a PD
library and did not obtain this program from me, then you may like to write
and I'll send you the latest versions of all my programs followed by
regular updates as they become available.
PLEASE NOTE
---------------------------------------------------------------------------
Although this program has been fully tested, I (the author) cannot be held
responsible for any loss or damage caused by the use or misuse of this
program. It is used entirely at your own risk.
CONTACT
---------------------------------------------------------------------------
Please write to me at the address below. I would be interested to hear if
you have ideas for improving the program or have found any bugs.
New versions of all my programs are always sent first to APDL and
The Datafile or can be obtained by writing to the below address, enclosing
either a cheque for £1.00 or a disc and return postage.
The file SystemVar.Docs.Others contains details of my other programs.
Please write to:
Andrew Berry
39 Lancaster Avenue
Sandiacre
Nottingham
NG10 5GW
---------------------------------------------------------------------------