Hi,
Does anyone know of any good/simple examples of building a folder tree based on the contents of a table?
FolderID | ParentID | Name
--------------------------
1 0 My Documents
2 1 Personal
3 1 Work
4 3 Confidential
5 0 My Photos
Would produce:
My Documents
Personal
Work
Confidential
My Photos
Thanks very much indeed - I have spent ages looking but cannot find anything.
Ed
Does anyone know of any good/simple examples of building a folder tree based on the contents of a table?
FolderID | ParentID | Name
--------------------------
1 0 My Documents
2 1 Personal
3 1 Work
4 3 Confidential
5 0 My Photos
Would produce:
My Documents
Personal
Work
Confidential
My Photos
Thanks very much indeed - I have spent ages looking but cannot find anything.
Ed