treeview of files with filtering

lironh

Registered User.
Local time
Today, 18:15
Joined
Feb 27, 2006
Messages
10
Hi All,

I'm trying to create a form that is reading filenames from a certain folder on my computer.
The filenames have some prefixes - 'tu' , 'tc' , 'bf' , 'tf' and 'act'.
each filename that is read is being displayed (without it's prefix) in a list and has another attribute (type) that the prefix is inserted into it.

Does someone know how to start this kind of application ?
 
Hi, I took a look at the Browse program. It is useful, but I have a slightly different problem. What I really need to do is first of all filter on the treeview itself and also if an item is selected I can access it, but how can I determine if an item has been selected from the treeview without triggering an error?

In otherwords, Treeview.Object.SelectedItem returns the file or directory if one is selected but gives an error if nothing is selected. Also, how do I know if a node is a file or a subdirectory? Is there way of filling Treeview with only directories and not files as well?

Many thanks,

Phil
 
is your treeview a list? maybe try something like this
have a textbox underneath list to hold the ID of the item selected then

on click() 'of listbox
Me.txtbox = Me.lstbox.Column(whatever)
Me.txtbox.Requery
 

Users who are viewing this thread

Back
Top Bottom