FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Set a specific starting function
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Set a specific starting function
Posted: Mon Jul 31, 2023 09:46 PM
Enrico Maria Giordano wrote:
It should work fine, please try it :-)

It is just one more stack call
Ok, I'll try, thank you.
It seems to work fine. I have to test it thoroughly. Thank you.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Set a specific starting function
Posted: Tue Aug 01, 2023 11:13 AM
What do you think about something like this?
Code (fw): Select all Collapse
IF TYPE( "MAIN()" ) = "UI"
    MAIN()
    QUIT
ENDIF
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
Re: Set a specific starting function
Posted: Sun Aug 06, 2023 02:04 PM

Sorry, Enrico,

I forgot to answer you.

For 'INIT PROCEDURE' there is good documentation in the xHarbour Language Reference Guide.chm.

Also an example under 'EXIT PROCEDURE'.

Regards, Detlef

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Set a specific starting function
Posted: Sun Aug 06, 2023 02:12 PM
I don't understand your message, sorry. I already proposed (in my previous message) the following code at the end the INIT function:
Code (fw): Select all Collapse
IF TYPE( "MAIN()" ) = "UI"
    MAIN()
    QUIT
ENDIF
Works fine for me. I would only like to know your thoughts about it. If there is not a public function called MAIN the code behavior is the usual one. Otherwise the function MAIN is run and, at the end, a QUIT allows the program to exit.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Set a specific starting function
Posted: Mon Aug 07, 2023 05:51 AM

Dear Enrico,

If it works fine for you then use it and lets wait to see if there are any issues

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Set a specific starting function
Posted: Mon Aug 07, 2023 07:35 AM

I'm not going to use it for now but I keep it for the future. Thank you.

Continue the discussion