Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > CurDir FunctionThis standard VB function returns the default folder (and drive) for the specified drive. SyntaxReturnsUsageA colon is not required after the drive name. The drive must exist, and must be within the range specified in the LASTDRIVE statement of the The dollar sign ($) in the function name is optional. If it is included, the return type is string. Otherwise the function returns a variant of vartype 8 (string). To change the current drive, use ChDrive. To change the current folder, use ChDir. ExampleThis example changes the current folder to C:\Windows, if it is not already the default. Sub Button_Click See AlsoChDir Statement |
Siebel VB Language Reference |