Android Question wobblemenu add tab 6

sigster

Active Member
Licensed User
Longtime User
Hi

I was traying to add tabs 6
finish to add this to the code , change in Designer to 6 but I get error
java.lang.ArrayIndexOutOfBoundsException: length=5; index=5


B4X:
#DesignerProperty: Key: TabCount, DisplayName: No. of Tabs, FieldType: String, DefaultValue: 5, List: 5|6, Description: Number of Tabs

#Event: Tab6Click

Tab6 = xui.CreatePanel("IconTab")
Tabs.Add(Tab6)


I get this error


B4X:
wobblemenu_createtab (java line: 305)
java.lang.ArrayIndexOutOfBoundsException: length=5; index=5
    at java.util.Arrays$ArrayList.get(Arrays.java:3766)
    at anywheresoftware.b4a.objects.collections.List.Get(List.java:117)
    at b4a.VVverk.wobblemenu._createtab(wobblemenu.java:305)
    at b4a.VVverk.wobblemenu._drawview(wobblemenu.java:752)
    at b4a.VVverk.wobblemenu._designercreateview(wobblemenu.java:540)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:67)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.VVverk.main$ResumableSub_Activity_Create.resume(main.java:555)
    at b4a.VVverk.main._activity_create(main.java:531)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at b4a.VVverk.main.afterFirstLayout(main.java:105)
    at b4a.VVverk.main.access$000(main.java:17)
    at b4a.VVverk.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage(Handler.java:100)
    at android.os.Looper.loop(Looper.java:237)
    at android.app.ActivityThread.main(ActivityThread.java:8107)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
 
Top