Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Drive Information
Message
From
05/02/1999 07:55:27
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00184270
Message ID:
00184279
Views:
20
hi,
try to search on M$ KNOWLEDGE BASE : ID Q135818
u may also use Win32api

I got the sample as th following:
DECLARE INTEGER GetLogicalDriveStrings IN Win32API as getit;
INTEGER nBuffSize, STRING lpString
CLEAR
DIMENSION aMyarray(1)
lpString=SPACE(200)
nBuffSize=LEN(lpString)
=getit(nBuffSize,@lpString)
NumberOfDrives=OCCURS(":",lpString)
DIMENSION aMyarray(NumberOfDrives)
FOR i=1 TO NumberOfDrives
aMyarray(i)=SUBSTR(lpString,AT(":",lpString,i)-1,1)
ENDFOR
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform