TheDane
asked on
filelistbox.listcount = 0 when it should be > 0 (windows98 problem?)
I have an application written in VB6. As part of the application a filelistbox is utilised to list files in a listbox control. The filelistbox is set with a path.
On one laptop (which differs in make from all working laptops and desktops: it is a FUJITS)the filelistbox control always returns no files when a path has been set eventhough there are files present. The O/S is Windows98.(Some working desktops has also got Windows98)
Could anybody tell me why it is not being displayed. I know that when files are hidden they will not show through a filelistbox control. What file setting could be different to exclude the files from view through the filelistbox control?
Thank you in advance
TheDane
On one laptop (which differs in make from all working laptops and desktops: it is a FUJITS)the filelistbox control always returns no files when a path has been set eventhough there are files present. The O/S is Windows98.(Some working desktops has also got Windows98)
Could anybody tell me why it is not being displayed. I know that when files are hidden they will not show through a filelistbox control. What file setting could be different to exclude the files from view through the filelistbox control?
Thank you in advance
TheDane
For example is the app pointing to the path
c:\inhere\
when on the laptop it should be
d:\inhere\
c:\inhere\
when on the laptop it should be
d:\inhere\
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi!
Just in case your problem is not like what SirNick has mentioned (but it's most likely the case)...
Could you have set any attributes of the filelistbox (Archive, Hidden, System...) and/or the extention (which is also known as the 'pattern' property) to something else?
That's it!
glass cookie ; )
Just in case your problem is not like what SirNick has mentioned (but it's most likely the case)...
Could you have set any attributes of the filelistbox (Archive, Hidden, System...) and/or the extention (which is also known as the 'pattern' property) to something else?
That's it!
glass cookie ; )
ASKER
Unfortunately I think this is the answer. I think it is VERY bad that a control that comes WITH VB6 does not work!!
I will try to implement the functionality via the dir() function as mentioned in article: Q196028
I will try to implement the functionality via the dir() function as mentioned in article: Q196028
This might sound a silly question, but are the files pointing to the same path. The reason I asked is because the laptop might have a D drive instead of a C drive.