FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BUTTON BAR is NOT Compiled when Harbour Warning Level w2
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
BUTTON BAR is NOT Compiled when Harbour Warning Level w2
Posted: Mon Apr 22, 2019 03:43 PM
Dear All ,

The BUTTONBAR does not complied when Harbour warning mode level w2 compiler parameter is provided but it is compiled when level w1 is provided.

How we should compiled when parameter w2 ? Any special syntax ?

I am using below code:

Code (fw): Select all Collapse
   DEFINE BUTTONBAR OF oApp:oWnd STYLEBAR SIZE 70, 70

   DEFINE BUTTON OF oApp:oWnd:oBar PROMPT FWString( "Exit" ) RESOURCE "exit"  ;
         ACTION oApp:oWnd:End()


Thanks
Shridhar
Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 195
Joined: Sun Jul 22, 2012 07:01 PM
Re: BUTTON BAR is NOT Compiled when Harbour Warning Level w2
Posted: Tue Apr 23, 2019 02:38 PM
I compile using -w3, which causes this problem with some FWH code. I work around it by preceding and following the problematic code with:

Code (fw): Select all Collapse
#pragma WARNINGLEVEL = 1

DEFINE BUTTONBAR OF oApp:oWnd STYLEBAR SIZE 70, 70

DEFINE BUTTON OF oApp:oWnd:oBar PROMPT FWString( "Exit" ) RESOURCE "exit"  ;
   ACTION oApp:oWnd:End()

#pragma WARNINGLEVEL = 3
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: BUTTON BAR is NOT Compiled when Harbour Warning Level w2
Posted: Tue Apr 23, 2019 02:52 PM

Hi ,

Thanks a lot ...! now its working...!

Thanks
shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB

Continue the discussion