OK I was going to post this in the QuickAction section but it is a presentation post not a question post.... I frequently get an Index out of bounds error in attempts to use the 3d version of Quick Action Menu.....
I forced it in the sample but I have other code samples (TOO BIG ) where I have Boolean flags preventing entry into this code section the one I'm having problems with actually has a counter ....
so if the counter is under 2 and the Boolean value to allow entry into this code block is true THEN and ONLY then do the Quick Action menu stuff...
the counter reads true and the Boolean flag is set in only select places but I still get the error
I just grabbed the code section and OMG there's three checks
It only errors on the 3D Version WHATS UP WITH THAT ?!?!?!?
The regular version doesn't complain about an index out of bounds, but its getting the SAME MENU ITEMS !!!
Whats going on here ::
I forced it in the sample but I have other code samples (TOO BIG ) where I have Boolean flags preventing entry into this code section the one I'm having problems with actually has a counter ....
so if the counter is under 2 and the Boolean value to allow entry into this code block is true THEN and ONLY then do the Quick Action menu stuff...
the counter reads true and the Boolean flag is set in only select places but I still get the error
I just grabbed the code section and OMG there's three checks
B4X:
If bAllowEntry = True Then
If bolQaMenuCreated = False Then
subSpecificCounter = subSpecificCounter +1
If subSpecificCounter < 2 Then
It only errors on the 3D Version WHATS UP WITH THAT ?!?!?!?
The regular version doesn't complain about an index out of bounds, but its getting the SAME MENU ITEMS !!!
Whats going on here ::
B4X:
'Initialize a bitmap drawable and the action item
bd.Initialize(LoadBitmap(File.DirAssets, Filename))
ai.Initialize(i, Text, bd)
ai.Selected = True
'Make the Prev and Next items sticky so they will not close the popup
'If i = 1 OR i = 2 Then ai.Sticky = True
'Add the item to both Quickactions popups
ac1.addActionItem(ai)
ac2.addActionItem(ai)
Last edited: