DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why PInteger?

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
richardchaven
Member


Joined: 30 May 2003
Posts: 20

PostPosted: 30/05/03 14:20    Post subject: Why PInteger? Reply with quote

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
View user's profile Send e-mail Yahoo Messenger
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 204

PostPosted: 31/05/03 00:37    Post subject: Reply with quote

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
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group