Why PInteger?

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Why PInteger?

Postby richardchaven » May 30th, 2003, 2:20 pm

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
richardchaven
Active Member
Active Member
 
Posts: 20
Joined: May 30th, 2003, 1:30 pm

Postby Kambiz » May 31st, 2003, 12:37 am

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
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron