Greetings all...
I'm working on a small project of my own, and need to make a listing of directories. I have this psuedo code for searching from <root> dir. And i was wondering if I've made it correct, or missed something important in the code?? And if it is correct then will it work as it should? that is, to create a tree heirarky in the component TreeView1 ?
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
I'm working on a small project of my own, and need to make a listing of directories. I have this psuedo code for searching from <root> dir. And i was wondering if I've made it correct, or missed something important in the code?? And if it is correct then will it work as it should? that is, to create a tree heirarky in the component TreeView1 ?
Code:
root()
for each folder in root
folder = first folder
dir(folder[folder])
folder = next folder
stop
stop
dir(folder)
for each folder in folder
folder = first folder
add item
open folder
add sub_item
close folder
folder = next folder
dir(folder)
stop
stop
My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work