ChDir Statement

Mjenja trenutni direktorij ili drajv.

Warning Icon

This statement currently does not work as documented. See this issue for more information.


Sintaksa:

ChDir Tekst kao znak

Parametri:

Text: Bilo koji znakovni izraz koji oznacava put direktorija ili drajva.

Note Icon

Ako samo zelite promjeniti trenutni drajv, unesiti slovo drajva poslije kojeg slijedi zarez.


Error codes:

5 Invalid procedure call

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err76 not found).

Primjer:

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