Alan I changed from Session to Custom and changed Procedure Init to Function Init and included a Return .T. - still no joy - but thanks for your input
Paul -----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Alan Bourke Sent: 21 September 2017 15:48 To: [email protected] Subject: Re: Focus not returning to command window after CreateObject If I build this into an EXE: Define Class stopwatch as Custom olepublic Function Init as Boolean Set Textmerge on noshow Set Textmerge to e:\temp\stopwatch.txt additive \<<Datetime()>> started Set Textmerge off Set Textmerge to Return .t. EndDefine Then create one, it returns to the Command window. So it's not that it it's not possible, but hard to identify what it is without having the source. -- Alan Bourke alanpbourke (at) fastmail (dot) fm On Thu, 21 Sep 2017, at 03:36 PM, Paul Newton wrote: > Alan > > That's what it was originally ... and I still had the same issue > > -----Original Message----- > From: ProfoxTech [mailto:[email protected]] On Behalf Of > Alan Bourke > Sent: 21 September 2017 15:25 > To: [email protected] > Subject: Re: Focus not returning to command window after CreateObject > > I would always use 'as custom' if it's a programmatic class. > > -- > Alan Bourke > alanpbourke (at) fastmail (dot) fm > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/by2pr0201mb17979fc8027f4aa77caf21f0a1...@by2pr0201mb1797.namprd02.prod.outlook.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

