Skip to content

Commit

Permalink
bf listbox.select()
Browse files Browse the repository at this point in the history
  • Loading branch information
vdelachaux committed Sep 3, 2024
1 parent 9359002 commit a07dfa4
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions UI/Project/Sources/Classes/listbox.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,22 @@ Function select($row : Integer) : cs:C1710.listbox
// Update selection
If (This:C1470.isCollection() || This:C1470.isEntitySelection())

This:C1470.item:=This:C1470.getValue()[$row-1]
This:C1470.itemPosition:=$row-1
This:C1470.items:=[This:C1470.item]
var $c : Collection
$c:=This:C1470.getValue()

If ($c.length>=$row)

This:C1470.item:=$c[$row-1]
This:C1470.itemPosition:=$row-1
This:C1470.items:=[This:C1470.item]

Else

This:C1470.item:=Null:C1517
This:C1470.itemPosition:=0
This:C1470.items:=[]

End if

Else

Expand Down

0 comments on commit a07dfa4

Please sign in to comment.