Important: The information in this document is obsolete and should not be used for new development.
GetControlReference
To determine a control's current reference value, use theGetControlReferencefunction. TheGetControlReferencefunction is also available as theGetCRefConfunction.
FUNCTION GetControlReference (theControl: ControlHandle): LongInt;
theControl- A handle to the control whose current reference value you wish
to determine.DESCRIPTION
TheGetControlReferencefunction returns as its function result the current reference value for the specified control.When you create a control, you specify an initial reference value, either in the control resource or in the
refConparameter of theNewControl function.The reference value is stored in thecontrlRfConfield of the control record. You can use this field for any purpose, and you can use theSetControlReference procedure, described next, to change this value.