Forward_begin_construct Command
Obsolete
This command is obsolete. This command is valid only in character-mode DataFlex. See the Class command for information about creating classes in DataFlex.
Purpose
To pass arguments required by a class's startmac macro from a class definition.
Syntax
forward_begin_construct
classname
. . .
What It Does
Where a class definition provides for construction of an object of another class that uses arguments in its initialization syntax, forward_begin_construct must be used in the definition of the new class to pass the values of the arguments required by that class.
- Where the new class's superclass is such a class,
forward_begin_constructis required with the superclass asclassname. - Where the new class creates sub-objects of a class requiring initialization syntax,
classnamemay be other than the superclass.
One forward_begin_construct command is required for every such class of which an object is constructed through a class definition.
Normally, the macro command that is to be called on object (or subclass) creation is identified on the class command line after the keyword startmac. Arguments (. . .) may be values defined within the subclass definition, or they may be values drawn from the object command line of instances of the subclass. In this case, the startmac macro name syntax must be provided on the class command line of the subclass, naming the arguments to be passed to classname in the forward_begin_construct command within the subclass's definition.