Oh... the only reason I kept using these functions was because Norton Guides
lists them so nicely...

I will try to look through ChangeLog, but I have found that it is quite
difficult to grab functions from there, as it is not presented in a nice
list.  But I will give it a shot.

Thanks

On Sat, Jan 30, 2010 at 3:42 AM, Viktor Szakáts <[email protected]>wrote:

> Hi,
>
> Aside from the bug, I suggest to use Harbour core functions
> wherever they exist, in this case they are HB_FGETATTR() and
> HB_FSETATTR(). There is also HB_FGETDATETIME(), HB_FSETDATETIME().
>
> There is also HB_FSIZE(), etc.
>
> Many time these are documented in ChangeLog.
>
> Brgds,
> Viktor
>
> On 2010 Jan 30, at 10:19, smu johnson wrote:
>
> > It appears the FILEATTR() function doesn't work.
> >
> > According to http://www.ousob.com/ng/tools1-3/ng935ab.php , it says it
> should return a bit-wise decimal number.  I tried a few different ways...
> absolute path, relative, and a piece of code my brother found from the
> Harbour source files.
> >
> > ___Pre-test:
> >
> > C:\hbm>attrib hello.prg
> > A   H        C:\hbm\hello.prg
> >
> > ___Result:
> >
> > C:\hbm>hello.exe
> >
> >          0
> >          0
> >          0
> >
> > ___code
> >
> > FUNCTION main()
> >
> >   ? FILEATTR("hello.prg")
> >   ? FILEATTR("C:\hbm\hello.prg")
> >
> > cFile  :=  FILESEEK("hello.prg")
> > DO WHILE .NOT. EMPTY (cFile)
> >   ? cFile, FILEATTR()
> >   cFile  :=  FILESEEK()
> > ENDDO
> >
> > return
> > // end
> >
> >
> > Have I found a bug? :3
> >
> > --
> > smu johnson <[email protected]>
> >
> > _______________________________________________
> > Harbour mailing list (attachment size limit: 40KB)
> > [email protected]
> > http://lists.harbour-project.org/mailman/listinfo/harbour
>
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>



-- 
smu johnson <[email protected]>
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to