Board index » delphi » Passing variable object types to procedures/functions
Peter McHardie
![]() Delphi Developer |
Fri, 12 Dec 1997 03:00:00 GMT
Passing variable object types to procedures/functions
I am attempting to write a function where one of the parameters, or
arguments, is a variable holding an Object. To be a bit more explicit I want to pass an object, which may be of type TForm or TPrinter, to a function which then processes depending on the Object Type. As an example Function XYZ(var OutDevice : TObject ; nFontSize : SmallInt); begin end; This function would then be called similar to : procedure ButtonClick(........) begin My problems occur when compiling ( message 'Identifier expected') highlighted Is someone able to advise/steer me in the right direction(s) please. Maca |