>Hi all,
>
>I want to set something up on a form that will allow the user to select from a list of valid drives on the system (C:, F:, etc.). I'd like to do this with a listbox or a spinner.
>
>How can I determine what the valid drives would be? Once that's determined, how do I get a list of the valid folders on that drive?
>
>Thanks!
>
>John
and, yet, another way is...
PROCEDURE Logical_Drives_list()
DECLARE INTEGER GetLogicalDriveStrings IN kernel32;
INTEGER nBufferLength,;
STRING @ lpBuffer
LOCAL lcDrives
lcDrives = SPACE(255)
GetLogicalDriveStrings( LEN(lcDrives), @lcDrives )
lcDrives = ALLTRIM(STRTRAN(lcDrives,CHR(0),CHR(13)+CHR(10)))
RETURN lcDrives
ENDPROC
Greg Reichert