I am populating a context-menu with values from an array.
So far so good.
However, at a later point I need to remove said items from the context-menu so they can be replaced by others items. However, here I stumble into problems.
Maybe you can help? The error I get is:
I have reproduced the error in the source I'm attaching. You need to add the FormLib-library and add the following objects: ContextMenu (naming it ctxt) and FormLib(naming it FormLib1) - then it should run.
It's late and probably I am forgetting something. Maybe you can shed some light?
Thanks!
rgds,
moster67
So far so good.
However, at a later point I need to remove said items from the context-menu so they can be replaced by others items. However, here I stumble into problems.
Maybe you can help? The error I get is:
B4X:
"Invalid Argument = Value of '2' is not valid for 'index'"
I have reproduced the error in the source I'm attaching. You need to add the FormLib-library and add the following objects: ContextMenu (naming it ctxt) and FormLib(naming it FormLib1) - then it should run.
It's late and probably I am forgetting something. Maybe you can shed some light?
Thanks!
rgds,
moster67
Last edited: