
Recursive data types in VB?
Thanks for the reply. I like the abstraction you have for the drive,
dir and file. While I'm actually interested in using a recursive data
type. I was using the drive, directory, and files as an example for a
data type which may be recursive. Say if I change to a data type which
is often easier to represent/process as a recursive data type such as a
linked list or other tree structures? My main interest is to learn how
to do a recursive data type in VB and go through the issues of what it
takes and how to process them in VB.
Thanks again for you input and have a GREAT Day.
Dano :)
Quote:
> You would not need 1st order recursion for your example.
> You would have one instance of 2nd order recursion.
> You would have a class for drive, folder and file and collection classes for
> drives, folders and files.
> Drives contains a collection of Drive
> Drive contains a Folders property
> Folders contains a collection of Folder
> Folder contains a Folders property and a Files property
> Files contains a collection of File
> File contains the data about a file
> Regards,
> Simon Jones
> PC Pro Magazine
--
Dan Doris
www.logoscomputer.com
3801 14th. Ave. W.
Seattle, WA 98119
** If you "Reply" to this message please remove "nospam" from my return
reply address.