This is weird! I think I heard about other problems with DISKSPACE(), but sure not this. The only advise I can give is to use my DriveInfo class (you can download it from the Files section, "Classes-VCX" category). It solves this problem at Win32API level.
Vlad
>Hi I have a strage problem
>I have a program with this lines...
>
>...
>SET DEFAULT TO A:
>discosize = DISKSPACE()
>SET DEFAULT TO C:\ops
>IF discosize < 1440000
>...
>
>when I see some variables in debug windows the result is:
>carloshead 2184
>carlossize 290239
>totaldiscos 1
>numrecs 6153
>I 2
>discosize 1167872.000000000000...0000 (total 35 0)
>
>then the line
>
>IF discosize < 1440000
>
>always is false
>when I evaluate in command window the expresion
>
>discosize = DISKSPACE()
>the result is
>discosize 1167872
>
>someone know why in my program the result is so extrange
>and why the IF always is false
>thanks...
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only