Link to home
Start Free TrialLog in
Avatar of Colin_T
Colin_TFlag for Australia

asked on

DIR comand of a blank line brings back random data

I was writing some code when I discovered if I do the following I get random data

Text2 = Dir("", vbNormal)
in this case I jot ADDSCCUS.DLL, in another program I had about.frm

System Vista Home Prem
VB6 with SP6

i have written code that test for a blank line but I am surprised it works this way
Is DIR not the comand to use anymore?
Has some one an explanation?
ASKER CERTIFIED SOLUTION
Avatar of Surone1
Surone1
Flag of Suriname 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
Avatar of Colin_T

ASKER

that  explains where it gets the names from.
is the treatment of a blank entery a design feature or a bug
Avatar of Colin_T

ASKER

Partial answer