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:profoxtech-bounces@leafe.com] On Behalf Of Alan Bourke Sent: 21 September 2017 15:48 To: profoxtech@leafe.com 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:profoxtech-bounces@leafe.com] On Behalf Of Alan Bourke Sent: 21 September 2017 15:25 To: profoxtech@leafe.com 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]