Link to home
Start Free TrialLog in
Avatar of TheDane
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
Avatar of SirNick
SirNick

Hello

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.
For example is the app pointing to the path

c:\inhere\

when on the laptop it should be

d:\inhere\
ASKER CERTIFIED SOLUTION
Avatar of Brendt Hess
Brendt Hess
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ; )
Avatar of TheDane

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