| View previous topic :: View next topic |
| Author |
Message |
richardchaven Member
Joined: 30 May 2003 Posts: 20
|
Posted: 30/05/03 14:20 Post subject: Why PInteger? |
|
|
One of the arguments to TPrintPreview.PaintRichText is a PInteger (pointer to integer).
Why a pointer and not just pass as a var? With overloading, you could have a version of the method that did not have that argument, and would pass its own (dummy) integer to the main method.
Cheers |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 204
|
Posted: 31/05/03 00:37 Post subject: |
|
|
It's quite simple! The component should be compatible with Delphi 3 and this version of the compoiler does not have procedure overloading, and also default parameter's value.
Kambiz |
|
| Back to top |
|
 |
|