BUTTON BAR is NOT Compiled when Harbour Warning Level w2

Post Reply
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

BUTTON BAR is NOT Compiled when Harbour Warning Level w2

Post by shri_fwh »

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: Select all

   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 19.12, BCC 7 32 bit, MariaDB
User avatar
rhlawek
Posts: 165
Joined: Sun Jul 22, 2012 7:01 pm

Re: BUTTON BAR is NOT Compiled when Harbour Warning Level w2

Post by rhlawek »

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: Select all

#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
 
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: BUTTON BAR is NOT Compiled when Harbour Warning Level w2

Post by shri_fwh »

Hi ,

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

Thanks
shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
Post Reply