been coding for almost 20 hours straight , and i know my question is basic , but i just don't get the following issue.
i have created a dirlist function , based on a listbox in a window which works great.
to make it more dynamic , i wanted to create the listbox dynamically in my code so i won't need the window and the listbox anymore.
lb_2 = CREATE listbox
ls_folder = sle_1.text + "\" + "*.*"
result = lb_2.DirList(ls_folder,0)
messagebox("DIRLIST ", string(result))
aantal = lb_2.TotalItems()
why does my first messagebox results in being FALSE and my second one -1 if i create my listbox dynamically in my code ? must be such an easy answer :) i am just not seeing it ...