jpgarro
14 years agoOccasional Contributor
Use of TComboBox
Hi,
I just want to add item in my combobox but I didn't see how.
I want to do this by using a script.
I want to fill my combobox with all the directory who conatins "V*"
All works but I don't know how to add the directory found in the combobox ???
Thanks for your help
I just want to add item in my combobox but I didn't see how.
I want to do this by using a script.
I want to fill my combobox with all the directory who conatins "V*"
All works but I don't know how to add the directory found in the combobox ???
var form = UserForms["Form1"];
var oCombo = form.cxComboBox1;
var foundFiles, aFile;
foundFiles = aqFileSystem["FindFolders"]("Livraisons\\", "V*",true);
Log["Message"]("direcftory found");
if (foundFiles != null)
{
while (foundFiles["HasNext"]())
{
aFile = foundFiles["Next"]();
oCombo["Text"] = foundFiles;
Log["Message"](aFile["Name"]);
}
}
form.Visible = true;
Thanks for your help