Important: The information in this document is obsolete and should not be used for new development.
SetControlReference
To change a control's current reference value, use theSetControlReferenceprocedure. TheSetControlReferenceprocedure is also available as theSetCRefConprocedure.
PROCEDURE SetControlReference (theControl: ControlHandle; data: LongInt);
theControl- A handle to the control whose reference value you wish to change.
data- The new reference value for the control.
DESCRIPTION
TheSetControlReferenceprocedure sets the control's reference value to the value you specify in thedataparameter.When you create a control, you specify an initial reference value, either in the
control resource or in therefConparameter of theNewControl function.The
reference value is stored in thecontrlRfConfield of the control record; you can
use theGetControlReferencefunction to determine the current value. You
can use this value for any purpose.