- John Vanleeuwe
- PowerBuilder
- Thursday, 13 June 2019 02:11 AM UTC
Hi all,
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.
listbox lb_2
lb_2 = CREATE listbox
ls_folder = sle_1.text + "\" + "*.*"
result = lb_2.DirList(ls_folder,0)
messagebox("DIRLIST ", string(result))
aantal = lb_2.TotalItems()
messagebox("FILES FOUND",string(aantal))
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 ...
TIA
John
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.