--- In [email protected], Vahan Yoghoudjian <[EMAIL PROTECTED]> wrote: > Button.Caption is of Type TCaption, either declare your parameter is TCaption...
I tried that but then I get this error: "Constant object cannot be passed as var parameter" Why is it a constant when I can give it a new value at runtime? btCompound.Caption := 'a text'; The main problem is that i need to call the procedure many times in my project and found it more ellegant not to use temporary variables. Uffe ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/i7folB/TM --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

