Page 2 of 3

Re: QUIT problem

Posted: Sat Mar 20, 2010 4:06 pm
by fprijatelj
Hi

This is possible solution:

Put this directive in myCommands.ch

#xtranslate QUIT => CLOSE ALL ; RELEASE WINDOW ALL

then include myCommand.ch in your prg files:

#include myCommand.ch

And you can safely use QUIT command.

Maybe this directive should be put in one of the system ch files (i_misc.ch) ?

BRGDS
Franček

Re: QUIT problem

Posted: Sat Mar 20, 2010 5:24 pm
by srvet_claudio
Thanks Esgici
but in programming I am still a baby calf :lol:

Fprijatelj, very professional your code

greetings to all
Claudio

Re: QUIT problem

Posted: Sat Mar 20, 2010 6:08 pm
by esgici
Nice solution, Franček :)

May be our Maestro will put it official headers file of HMG.

Claudio,

IMO, regarding your previous work, ( puzzle game ), you are a very robust bull in programing :)

(low level approach to high level needs; such as multi language feature changeable at run time etc)

Saludos and Regards

--

Esgici

Re: QUIT problem

Posted: Sat Mar 20, 2010 6:58 pm
by srvet_claudio
Esgici,
thanks for your words.
Best regards
Claudio

Re: QUIT problem

Posted: Sat Mar 20, 2010 7:06 pm
by Roberto Lopez
fprijatelj wrote:Hi

This is possible solution:

Put this directive in myCommands.ch

#xtranslate QUIT => CLOSE ALL ; RELEASE WINDOW ALL

then include myCommand.ch in your prg files:

#include myCommand.ch

And you can safely use QUIT command.

Maybe this directive should be put in one of the system ch files (i_misc.ch) ?

BRGDS
Franček
I'll add to hmg.ch.

Thanks.

Re: QUIT problem

Posted: Tue Mar 23, 2010 11:20 pm
by Roberto Lopez
fprijatelj wrote:Hi

This is possible solution:

Put this directive in myCommands.ch

#xtranslate QUIT => CLOSE ALL ; RELEASE WINDOW ALL

then include myCommand.ch in your prg files:

#include myCommand.ch

And you can safely use QUIT command.

Maybe this directive should be put in one of the system ch files (i_misc.ch) ?

BRGDS
Franček
I've already fixed. The fix will be available in 3.0.26.

It is based on your suggestion.

I've only omitted the CLOSE ALL command, since RELEASE WINDOW ALL command invokes the ReleaseAllWindows() function that includes a call to dbcloseall().

Re: QUIT problem

Posted: Tue Apr 27, 2010 4:58 pm
by Steed
Hi, Roberto

Something is happend with command QUIT i think is overlaped the commad oExcel:Quit(), attached please find a little example. the error that these show is: Test.prg(52) Error E0030 Syntax error "syntax error at 'WINDOW'"


Regards,

Ed

Hola Roberto,

Algo esta pasando con el comando QUIT , creo que esta traslapando el comando oExcel:Quit(), adjunto un pequeño ejemplo, el error que muestras es:
Test.prg(52) Error E0030 Syntax error "syntax error at 'WINDOW'"


Saludos,

Ed

Re: QUIT problem

Posted: Tue Apr 27, 2010 7:28 pm
by esgici
Hi Ed

Are you sure Quit() is a valid OLE (Excel Class) method ?

Does may be Close() ?

Regards, saludos

--

Esgici

Re: QUIT problem

Posted: Tue Apr 27, 2010 7:55 pm
by Roberto Lopez
Steed wrote:Hi, Roberto

Something is happend with command QUIT i think is overlaped the commad oExcel:Quit(), attached please find a little example. the error that these show is: Test.prg(52) Error E0030 Syntax error "syntax error at 'WINDOW'"


Regards,

Ed

Hola Roberto,

Algo esta pasando con el comando QUIT , creo que esta traslapando el comando oExcel:Quit(), adjunto un pequeño ejemplo, el error que muestras es:
Test.prg(52) Error E0030 Syntax error "syntax error at 'WINDOW'"


Saludos,

Ed
I'll check it ASAP.

Thanks for reporting.

Re: QUIT problem

Posted: Wed Apr 28, 2010 3:47 pm
by Steed
Hi, Esqici

Off course, the command is oExcel:Quit

BTW, Roberto i put a small update in the sample, in the same link of the first post.


Regards,


Eduar