BUTTON BAR is NOT Compiled when Harbour Warning Level w2

BUTTON BAR is NOT Compiled when Harbour Warning Level w2

Postby shri_fwh » Mon Apr 22, 2019 3: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: Select all  Expand view  RUN

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

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

Postby rhlawek » Tue Apr 23, 2019 2: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: Select all  Expand view  RUN

#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
 
User avatar
rhlawek
 
Posts: 194
Joined: Sun Jul 22, 2012 7:01 pm

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

Postby shri_fwh » Tue Apr 23, 2019 2:52 pm

Hi ,

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

Thanks
shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 55 guests