Page 2 of 2

Re: HMG 3.0.43 - SET MULTIPLE OFF

Posted: Wed Oct 03, 2012 8:55 pm
by danielcrocciari
Hi everyone, today I made some tests and realized MULTIPLE SET OFF is no longer working, does anyone know if this really was discontinued configuration.

For those unfamiliar, MULTIPLE OFF SET is responsible for preventing the program from running more than once, ie only one instance of the program will remain open.

Thank's

Re: HMG 3.0.43 - SET MULTIPLE OFF

Posted: Wed Oct 03, 2012 9:08 pm
by esgici
danielcrocciari wrote:Hi everyone, today I made some tests and realized MULTIPLE SET OFF is no longer working, does anyone know if this really was discontinued configuration.

For those unfamiliar, MULTIPLE OFF SET is responsible for preventing the program from running more than once, ie only one instance of the program will remain open.

Thank's
Hi Daniel

You are welcome back :)

Sadly I don't know answer of your question :(

But I want ask you another thing : where is our friend Vanguarda? Have you know anything about him ?

Since a long time we don't see him :(

Regards

HMG versions 3.0.43 and 3.0.44

Posted: Wed Oct 03, 2012 11:47 pm
by Pablo César
Hi Daniel,

I noted that SET MULTIPLE OFF or SET MULTIPLE WARNING was not working, then I saw that needs to set up in your .HBC file, this: mt=no, but you will need to close project in your IDE before then open again with mt=no already saved and you will see it working.

See normal example:

Code: Select all

#include <hmg.ch>

Function Main ()
SET LANGUAGE TO PORTUGUESE
SET CODEPAGE TO PORTUGUESE
// SET LANGUAGE TO ENGLISH
// SET CODEPAGE TO ENGLISH

SET MULTIPLE OFF WARNING

DEFINE WINDOW Form1 ;
   AT 0,0 ;
   WIDTH 320 ;
   HEIGHT 240 ;
   TITLE "Evitando múltiplas execuções do programa" ;
   MAIN
END WINDOW
CENTER WINDOW Form1
ACTIVATE WINDOW Form1
Return Nil
See attached files with executable file for your appreciation.

I am very glad to help you. Let me tell you that I started HMG thank to your HMG Lights blog, so I owe a lot to you !