KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to retrieve the row that is currently selected in 4D View?
PRODUCT: 4D View | VERSION: 2003 | PLATFORM: Mac & Win
Published On: August 14, 2003

When a row is highlighted in 4D View, you may want to retrieve it. The following code does just that:

ARRAY LONGINT($left;0)
ARRAY LONGINT($top;0)
ARRAY LONGINT($right;0)
ARRAY LONGINT($bottom;0)

PV GET SELECTED RANGES LIST (field6;$left;$top;$right;$bottom)
ALERT("The row that is selected is: Row #"+String($Bottom{1}))