Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Class(y) - <b>var</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 VAR
 Declare instance variable(s)
------------------------------------------------------------------------------

 Syntax:

    VAR <variable name list> [READONLY | RO | NOASSIGN]

 Arguments:

    <variable name list> is a list of one or more variable names to be
    included in the class being created.

 Description:

    Includes the named variables, as instance variables, in the class being
    created.  Each object (instance of a class) created contains its own
    copy of the instance variables of that class.

    The VAR command is only valid inside a CREATE CLASS...END CLASS block.

    If the optional READONLY clause (abbreviation RO) is included, Class(y)
    will prevent the variable from being assigned to, except in methods of
    that class.  This has no meaning when used with variables declared hidden
    with the HIDDEN: command.

    If an assignment occurs which is illegal because a variable has been
    flagged as read-only, the Clipper error system will be invoked with a
    Class(y) error.

 Notes:

    .   Instance variable names are only significant up to 9 characters, as
        opposed to Clipper's usual 10.  See the section entitled Length
        of Variable Names.

    .   The NOASSIGN clause is equivalent to the READONLY clause, but is
        only included for compatibility with previous versions of Class(y).

See Also: CLASS VAR Length of Variable Names

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson