>Hi All,
> I am using the following code to get the file attribute based on file extension in a given file path:
>
>gnFilenumber = ADIR(gdir,"D:\Zach\Alamo\Parts\33102dcp\", '*.hsp')
>
>The value in gngnFilenumber is 0. I know there are files in D:\Zach\Alamo\Parts\33102dcp\ with .hsp extension.
>
>
>Can someone please tell me what am I doing wrong?
>
>Thanks
>
>MA
I know what you're doing wrong :) You're not checking Help file.
lnFileNumber = ADIR(laFiles,'D:\Zach\Alamo\Parts\33102dcp\*.hsp')
If it's not broken, fix it until it is.
My Blog