Android Question activity.addmenu

Colin Evans

Active Member
Licensed User
Longtime User
Hi, is it possible to use values from labels to populate an activity.addmenu

i.e. Activity.AddMenu(lblOpt1.text,"mnuOption1")

where lblOpt1.text is equal to a value created on first run, so I have six labels that change daily when first run, they contain the dates received from JSON data

So I want to create a menu that allows me to choose from the menu based on the dates shown

I have tried but whilst the menu is created it doesn't show any value I have the six blank options but no text but the lblOpt1 = "25.5.2018", lblOpt2 = "26.5.2018" etc
 

Colin Evans

Active Member
Licensed User
Longtime User
It doesn't matter where the string comes from. However you can only add menu items in Activity_Create.
Hi Erel I am adding them in Activity_create but it doesn't put any text in the menu, I have seven lblOpt's 1 to 7 and they all show the date but when I use the code below, whilst it creates the menu options there is no text value

i.e. Activity.AddMenu(lblOpt1.text,"mnuOption1")
 
Upvote 0
Top