Page 1 of 1

BUTTON BAR is NOT Compiled when Harbour Warning Level w2

Posted: Mon Apr 22, 2019 3:43 pm
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

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

Posted: Tue Apr 23, 2019 2:38 pm
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
 

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

Posted: Tue Apr 23, 2019 2:52 pm
by shri_fwh
Hi ,

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

Thanks
shridhar