IBM Lotus Symphony


ChDir Statement [Runtime]

Changes the current directory or drive.

Warning Icon This runtime statement currently does not work as documented.

Syntax:

ChDir Text As String

Parameters:

Text: Any string expression that specifies the directory path or drive.

Note Icon If you only want to change the current drive, enter the drive letter followed by a colon.

Error Codes

5 Invalid procedure call

76 Path not found

Example:

Sub ExampleChDir

Dim sDir1 as String , sDir2 as String

sDir1 = "c:\Test"

sDir2 = "d:\private"

ChDir( sDir1 )

msgbox CurDir

ChDir( sDir2 )

msgbox CurDir

end sub


Product Feedback | Additional Documentation | Trademarks