KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Retrieving the position and reference number of a selected list item
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: April 21, 2005

Here is a project method that returns both selected position and reference number of the selected list element.

  ` Method: Get_SelectedItem

  ` Description

  ` Retrieve the position and reference number of the selected list item

  `

  ` Parameters

  ` $1 - List reference (Longint)

  ` $2 - Pointer to an Array of Longint

  ` $3 - Pointer to an Array of Longint

  ` ----------------------------------------------------

C_LONGINT($1;$hlist;$selected)

C_POINTER($2;$3;$arrPosition;$arrReference)

$hlist:=$1

$arrPosition:=$2

$arrReference:=$3


ARRAY LONGINT($arrPosition->;0)

ARRAY LONGINT($arrReference->;0)

$selected:=Selected list items($hlist;$arrPosition->)

$selected:=Selected list items($hlist;$arrReference->;*)