Button.Caption is of Type TCaption, either declare your parameter is TCaption or use a temporary variable and pass that variable as parameter
var vCaption: string; begin vCaption := btCompound.Caption; // it works fmKeyboard.keyboard(vCaption); end; Vahan -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of safeldt2 Sent: Friday, September 09, 2005 11:35 AM To: [email protected] Subject: [delphi-en] Passing a caption as var string. Hi, I need to pass af buttons caption string to a procedure as var parameter. procedure keyboard(var KeybString: string); . . . fmKeyboard.keyboard(btCompound.Caption); But i get the following error: Types of actual and formal var parameters must be identical How do I make this to work? Uffe ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] SPONSORED LINKS Basic programming language C programming language Computer programming languages The c programming language C programming language List of programming languages ---------------------------------------------------------------------------- ---- YAHOO! GROUPS LINKS a.. Visit your group "delphi-en" on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. ---------------------------------------------------------------------------- ---- [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/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/

