Can you show some code where you use an "Inputlist"?
Which variable type do you refer to with "Inputlist'"?
If you ask the right question then you might get the answer you are looking for...
Can you show some code where you use an "Inputlist"?
Which variable type do you refer to with "Inputlist'"?
If you ask the right question then you might get the answer you are looking for...
Dim Keuze(Cursor1.RowCount) As String
Dim Nummer(Cursor1.RowCount) As String
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
Keuze(i)=Cursor1.GetString("ProjectID")&" - "&Cursor1.GetString("Naam")
Nummer(i)=Cursor1.GetString("ProjectID")
Next
ProgressDialogHide
Dim Ret As Int
Ret = InputList(Keuze,"Projecten",-1)
If Ret = DialogResponse.CANCEL Then
ToastMessageShow("Afgebroken", False)
CurrentProjectID = ""
Else
CurrentProjectID = Nummer(Ret)
End If
"Keuze" has a Number and a Name. This name is mostly longer than the with of the Inputlist, so I got 2 lines. I hope there is a way to set Width of the Inputlist.
InputList is a build in function of B4A (MsgBox). You are correct: My problem is "because the string is too long" or the box is too narrow. I hope there is a way to set the Width of the box.
Hi ! I use the code: Private Dialog As B4XDialog Dialog.Initialize(Root) Private ListTemplate As B4XListTemplate ListTemplate.Initialize ListTemplate.Resize(500dip,350dip) '