Ejecutar una sola vez la aplciación

HMG en Español

Moderator: Rathinagiri

JALMAG
Posts: 262
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Ejecutar una sola vez la aplciación

Post by JALMAG »

Se que está por algún ejemplo...pero ahora no lo veo, la pregunta es ¿como puedo evitrar abrir dos veces mi aplicación?, es decir, evitar que se ejecute de nuevo si ya está abierta.

Gracias amigos, sois muy amables.
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Ejecutar una sola vez la aplciación

Post by Vanguarda »

Hi my friend,

Please type this line bellow in you "Function Main"

Code: Select all

Set Multiple Off
Per example:

Code: Select all

Function Main
   Set Multiple Off
   Load Window Main
   Main.Center
   Main.Activate
Return 
I hope that help.

My best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
JALMAG
Posts: 262
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Re: Ejecutar una sola vez la aplciación

Post by JALMAG »

Vanguarda wrote:Hi my friend,

Please type this line bellow in you "Function Main"

Code: Select all

Set Multiple Off
Per example:

Code: Select all

Function Main
   Set Multiple Off
   Load Window Main
   Main.Center
   Main.Activate
Return 
I hope that help.

My best regards,
Thank you Vanguarda
JALMAG
Posts: 262
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Re: Ejecutar una sola vez la aplciación

Post by JALMAG »

Vanguarda wrote:Hi my friend,

Please type this line bellow in you "Function Main"

Code: Select all

Set Multiple Off
Per example:

Code: Select all

Function Main
   Set Multiple Off
   Load Window Main
   Main.Center
   Main.Activate
Return 
I hope that help.

My best regards,
Thank you Vanguarda. All Ok.
Eres un sol...in spanish.
User avatar
Vanguarda
Posts: 543
Joined: Wed Feb 11, 2009 10:56 am
Location: Americana - SP
Contact:

Re: Ejecutar una sola vez la aplciación

Post by Vanguarda »

Hi friend
I´m glad for know that.

My best regards,
--
Paulo Sérgio Durço (Vanguarda)


http://hmglights.wordpress.com/
User avatar
Czarny_Pijar
Posts: 172
Joined: Thu Mar 18, 2010 11:31 pm
Location: 19.2341 E 50.2267 N

Re: Ejecutar una sola vez la aplciación

Post by Czarny_Pijar »

Keep smailing! Especially while translating this page with google translator ;)

The original : Set Multiple Off
Translated : Multiple Off in September :lol:
JALMAG
Posts: 262
Joined: Sun Jan 10, 2010 7:05 pm
DBs Used: DBF, MariaDB
Location: España - Spain

Re: Ejecutar una sola vez la aplciación

Post by JALMAG »

Czarny_Pijar wrote:Keep smailing! Especially while translating this page with google translator ;)

The original : Set Multiple Off
Translated : Multiple Off in September :lol:
The English is complicated to translate in a literal way. :lol:
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Ejecutar una sola vez la aplciación

Post by luisvasquezcl »

Hola,
increible traducción :lol: ....
hay que tener cuidado con el google translator, no vaya a ser que traduzca alguna palabra en algo ofensivo. :roll:
saludos cordiales,
Luis Vasquez
User avatar
Hazael
Posts: 109
Joined: Thu Jun 24, 2010 11:37 am
Location: France

Re: Ejecutar una sola vez la aplciación

Post by Hazael »

Hello Friends,

Is there any motive why SET MULTIPLE OFF (just after PROCEDURE Main() ) would not work?
I mean, I do not want my program to be loaded more than once but I can load it many times and SET MULTIPLE OFF seems to have no effect (using HMG 3.0.40).

Thanks for any hint.

Qatan
Harbour | GTWVT | MingW | Visual Studio Code
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Ejecutar una sola vez la aplciación

Post by danielmaximiliano »

Qatan wrote:Hello Friends,

Is there any motive why SET MULTIPLE OFF (just after PROCEDURE Main() ) would not work?
I mean, I do not want my program to be loaded more than once but I can load it many times and SET MULTIPLE OFF seems to have no effect (using HMG 3.0.40).

Thanks for any hint.

Qatan
Hi Qatan
in HMG.3.0.40 works perfectly
Set Multiple off
Set Multiple off
Greenshot_2012-03-01_20-01-03.png (268.02 KiB) Viewed 4681 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply