Page 1 of 1

Why PInteger?

PostPosted: May 30th, 2003, 2:20 pm
by richardchaven
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

PostPosted: May 31st, 2003, 12:37 am
by Kambiz
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