Lists Component

Fnd_List_ChoiceList

Fnd_List_ChoiceList (prompt; ->text array) -> Number

Legacy manual page 142

Parameters

ParameterTypeDescription
promptTextPrompt
text arrayPointerPointer to a text array
Function resultNumberSelected element number

Description

The Fnd_List_ChoiceList allows the user to select an element from a list. LIST TO ARRAY("MyList";MyTextArray)

Fnd_Wnd_Title ("Choices")
$element_i:=Fnd_List_ChoiceList ("Pick One";->MyTextArray)

If(OK=1)

[Field]Value:=MyTextArray{$element_i}

End if ARRAY TEXT(MyTextArray;0) ` Clear the array.

Extracted source text
            Fnd_List_ChoiceList (prompt; ->text array) ➔ Number

              Parameter               Type             Description
              prompt                  Text             Prompt
              text array              Pointer          Pointer to a text array
              Function result         Number           Selected element number

            The Fnd_List_ChoiceList allows the user to select an element from a list.
              LIST TO ARRAY("MyList";MyTextArray)
              Fnd_Wnd_Title ("Choices")
              $element_i:=Fnd_List_ChoiceList ("Pick One";->MyTextArray)
              If(OK=1)
                [Field]Value:=MyTextArray{$element_i}
              End if
              ARRAY TEXT(MyTextArray;0) ` Clear the array.