Miyako, Thanks, but that’s not the issue. Listbox 1 is an entity selection of messages. One row has been clicked, and I know (from current item) what the selection is. One of the attributes of the selection is the number of the contact who sent or received the message.
Listbox 2 contains an entity selection of contacts (names and numbers). When a message is selected in LB1, I want to highlight in LB2 the contact related to the message. How do I find out which row to specify in LISTBOX SELECT ROW(*;”LB2”;…)? They’re both single-select boxes. Jeremy > On 21 Jan 2020, at 11:53, Keisuke Miyako via 4D_Tech <[email protected]> > wrote: > > if the listbox is single-select, you can use LISTBOX GET CELL POSITION to get > the row number, > then check that the "current item" is not Null to verify whether the current > row was selected or unselected. > (remember, you can unselect a row by shift-click or command click) > > although collection-type listboxes offer 3 automated properties (current > item, position, selection) > I find that it is often easier to use only the "current item" object and > leave the other two blank. > using the current position or selection property often defeats selection by > code, > commands such as LISTBOX SELECT ROW. > > you'd need a different setup for a multi-select listbox. > >> 2020/01/21 17:29、Jeremy Roussak via 4D_Tech <[email protected]>のメール: >> Yet again, if this is obvious, please excuse me: this is my first project >> using only ORDA. 4Dv18. > > > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

