Next: Objects names and constant
Up: Various attributes and functions
Previous: Attributes for DO statements
the manipulation of the units needs some specifics attributes. We develop in
this section some of the most frequently used.
-
unitVar.FILENAME
-
This attribute returns the name of the file (path included) where the unit is
defined.
-
unitVar.FILE
-
This attribute returns the file data structure
where the unit is defined. In this case, this variable nay be used in order
to update in the file the unit while preserving other data
Example 46:PRINT $cunit.SAVE("/tmp/newFile") // will store the unit in a new File
fileVar := $cunit.FILE
PRINT fileVar.SAVE($cunit.FILENAME) // will store the unit in the same file
// that where it is defined while keeping the other units which are also
// defined in it.
Yann Mevel
1999-04-30