Hi, I am trying to read a text file and populate each line from the file into the ComboBox.
I have this code
Dim t As TextInputStream Dim f As FolderItem Dim dlg As OpenDialog dlg = New OpenDialog f = dlg.ShowModal() // open open dialog for selecting a file to load if f<> nil then t = f.OpenAsTextFile // open selected text file ComboBox1.InitialValue = t.ReadAll else //user cancelled end Return True
Apparently, I need to loop through each line in the text and then pass it into the ComboBox.InitialValue.
I would appreciate any help.
Thank you in advance,