SelectedRowText: How is this working?

I wanted to use a DesktopPopupMenu, but I have troubles with this new BASIC. What lust I use ?

Selected_Contact = item.Text
System.DebugLog "Me.SelectRowText: " + PM_Source.SelectedRowText

I’m sure you know what ‘Selected_Contact’ and ‘item’ are. Maybe Selected_Contact is a string? item could be a TextField?
I guess PM_Source is your DesktopPopupMenu.
I don’t understand the question. Sorry.

1 Like

Sorry.

Item is the Event parameter.
Selected_Co,tact is a String
PM_Source is the DesktopPopupMenu

The code above is in a DesktopPopupMenu Event (Pressed or so).

I wanted to get the DesktopPopupMenu Selected Text
 and found two ways to get it.
It was disturbing me.

In fact, I was far more disturbed (by what ?) I wrote some 20-30 lines and wasted 2 days to debug them.
As usual, something simple. To debug it correctly, I draw some shema, add Var names where needed, then read and correct my spaghetti code.
Now that code works (but the Mehtods it calls do not works any more).
I stopped to look at it 2 days ago. It’s good to be retired, I have plenty of time to let things “on hands” then resume sometimes later when the brain is back to work on that..