JCL Help:TJclTabSet.NewReference
JCL Help: TJclTabSet.NewReference Method
Search in JCL Help
Search in all projects
Summary
Initializes a new tab set instance referencing the current instance.
Pascal
public function NewReference: TJclTabSet;
Return Value
nil if NewReference is called on a nil instance
- or -
A new TJclTabSet instance identical to the instance Close was called on
Description
The NewReference method initializes a new instance of the TJclTabSet class and sets a reference in the new instance to the current instance.
NewReference allows several tabset instances to hold the same tab set settings, regardless of which instance changes them. Only when the last tab set instance is destroyed, will the actual tab set data be disposed of.
Contrast this to Clone, which will simply copy the data from the original instance to the new one. Whenever you change the settings in one instance, the other will remain unaffected.
See Also
About
Donator
Marcel Bestebroer
Notes
This method is nil-safe; when invoked on a nil-reference, this method will return nil.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page