Applies to: an ABC window with a sheet and several tabs; posted in comp.lang.clarion. No Clarion version is named.
Problem
On the third tab of a multi-tab window the poster wanted to select the list and highlight its first record. He put this in the tab's embed under the selecting section, and it did not execute:
Post(Event:ScrollTop,?Browse:1)
select(?Browse:1)
Solution
- Use a sheet-level embed, not the tab's own: WM.TakeNewSelection, after the parent call (the Event:NewSelection of the sheet was named too).
- Check which tab is selected with the sheet's
PROP:ChoiceFEQand act per tab:
CASE ?Sheet1{PROP:ChoiceFEQ}
OF ?TabParts
SELECT(?ListParts)
OF ?TabOrders
POST(EVENT:ScrollTop,?ListOrders)
SELECT(?ListOrders)
END
Caveats
- A reply to swap the two lines did not help the poster. He later got it working by changing the order of some controls and skipping a few, and gave no more detail.
- The second reply is a suggestion; the poster did not report back on it.
Today (2026)
Likely unchanged on the ABC chain; not re-tested.
Sources: Ed (Jan 2022, the question), Sparky (Jan 2022), Koen T. (Jan 2022) in comp.lang.clarion.