I know, but i need to find that index nummer.
an example
i've create a vew menu items
contextmenu1.items.add("Test1")
contextmenu1.items.add("Test2")
contextmenu1.items.add("Test3")
(in the prorgram the names are from a recordset)
so i've 3 menu items
now i want later in the code add an submenu to lets say test2.
I don't know the index and want to know it. than i can use it to add
the submenu
How do i find the indexnumber of the menuitem with the text "Test2"
On Thu, 23 Oct 2003 11:50:16 +0200, "Armin Zingler"
<az*******@freenet.de> wrote:
"Peter van der Veen" <pv***************@no.spam.ming.vanbrug.nl>
schrieb I have a contextmenu and i want to add to one of the items a
submenu item. I only have the name of item
A MenuItem does not have a Name property. You mean the variable name? There
might be several variables with different names pointig to the same
MenuItem.
and want to know the index
value. How to do that?
The MenuItem has an Index property.