CCP4 web logo CCP4i: Graphical User Interface
Documentation for Programmers
DefineVariable

next button previous button top button

NAME

DefineVariable - define the data type and initial value of an array variable

SYNOPSIS

DefineVariable arrayname variable_name type initial_value

DESCRIPTION

The data type and initial value of a variable are usually set in the .def file. This command will perform a similar function initialising the parameter variable_name in array arrayname so that the commands such as CreateLine have sufficient information to draw a widget such as entry field, button or menu for the parameter. The data type type should be set to something which is defined in the $CCP4I_top/etc/types.def file and an initial value initial_value must be set but can be a null string (i.e. "").

Note that only the parameters defined in a .def file are written out to another .def file if the user opts to save the current status so any parameter initialised with the DefineVariable command will NOT be saved.

KEYWORDS