Sub LoadData
---
---
Do While RS.NextRow
Dim codeId As Int
Dim sProd, sTit, sDat As String
codeId = RS.GetInt("sCodeId")
sProd = RS.GetString("sProduct")
sTit = RS.GetString("sTitle")
sDat = RS.GetString("sDate")
xclv.Add(CreateItem(xclv.AsView.Width,codeId,sProd,sTit,sDat),codeId)
Data.Add(sTit)
nbrItem = nbrItem+1
Loop
RS.Close
lblNbrItem.Text = $"# ${nbrItem}"$
Log(Data.Size)
SetAutoComplete(Data,tfSearch)
End Sub
Sub SetAutoComplete(Items As List, Field As TextField)
Dim jo As JavaObject
jo.InitializeStatic("org.controlsfx.control.textfield.TextFields")
jo.RunMethod("bindAutoCompletion", Array(Field, Items))
End Sub