QUIT problem

Moderator: Rathinagiri

fprijatelj
Posts: 14
Joined: Wed Mar 10, 2010 4:09 pm

Re: QUIT problem

Post 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
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: QUIT problem

Post by srvet_claudio »

Thanks Esgici
but in programming I am still a baby calf :lol:

Fprijatelj, very professional your code

greetings to all
Claudio
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: QUIT problem

Post 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
Viva INTERNATIONAL HMG :D
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: QUIT problem

Post by srvet_claudio »

Esgici,
thanks for your words.
Best regards
Claudio
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: QUIT problem

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: QUIT problem

Post 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().
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: QUIT problem

Post 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
Attachments
oExcel1.zip
(2.01 KiB) Downloaded 253 times
Last edited by Steed on Wed Apr 28, 2010 3:44 pm, edited 1 time in total.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: QUIT problem

Post by esgici »

Hi Ed

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

Does may be Close() ?

Regards, saludos

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4004
Joined: Wed Jul 30, 2008 6:43 pm

Re: QUIT problem

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: QUIT problem

Post 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
Post Reply