Subject: Re: transfer focus to Office From: Camille Kater Date: Fri, 28 Mar 2014 14:03:23 +0100 Message-ID: <1396012637_5@vo.lu> References: <72116452-155a-45d1-867f-c8d9b09e8e80@googlegroups.com> <661195ef-7d31-4516-8e16-ef17348782b6@googlegroups.com> Lines: 45 NNTP-Posting-Host: 188.115.5.121 Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.vo.lu!not-for-mail Newsgroups: comp.lang.clipper.visual-objects X-Trace: vo.lu 1396012637 188.115.5.121 (28 Mar 2014 14:17:17 0100) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 In-Reply-To: <661195ef-7d31-4516-8e16-ef17348782b6@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 140328-0, 28/03/2014), Outbound message X-Antivirus-Status: Clean Xref: csiph.com comp.lang.clipper.visual-objects:6719 Henry, FindWindow requires 2 parameters: HWND FindWindow( LPCTSTR lpClassName, // pointer to class name LPCTSTR lpWindowName // pointer to window name ); Window name = caption of the window You can Write: FindWindow(NULL_PSZ,String2Psz() Camille On 28/03/2014 11:14, H_Fidler@yahoo.com wrote: > Giorgio, thanks for the answer. > > I tried: > nHandle := FindWindow(String2Psz("Excel.exe")) > > And I received a compiler error: > Actual parameter is missing or default value not specified. > > Thanks for any help. > > Henry >