Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 96
Registered: ‎04-28-2009
My Device: Not Specified

condition try and if else

hai

 

i have a problem with adding menu...

 

try {
            this.extraFun.currentMenu.ID = "3324"; //tadinya 0  3324//ini untuk ngehit ektra pun
            //this.hotDiskon.currentMenu.ID = "3330";
            //this.extraFun.currentMenu.currentPage = Integer.toString(this.extraFun.pagecurrent);
            //this.extraFun.currentMenu.typemenu = ItemMenu.TYPEMENU_LISTMENU;
            this.extraFun.currentMenu.isUptodate = false;
            this.extraFun.currentMenu.isHTTP_OK = false;
           // this.hotDiskon.currentMenu.isHTTP_OK = false;
            //this.hotDiskon.currentMenu.isUptodate = false;
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        finally {
            this.extraFun.setRootMenu(this.extraFun.currentMenu);
           // this.hotDiskon.setRootMenu(this.hotDiskon.currentMenu);
        }

 

and i try to solve problem with statement

try{

if(bla bla ){

}else{

} }

 

but i dont know to use it...before that..i want to adding menu on this statement

 

 

regards 

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: condition try and if else

If you are new to development, I suggest you to go thru this sticky thread.

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=13264


Use Search. "Accept Solution" If the problem is resolved.