Guida di LibreOffice 7.2
Returns a variant string that represents the current path or that of the specified Windows drive.
CurDir [(Text As String)]
String
Text: Any string expression that specifies an existing drive, for example "C" for the first partition of the first hard drive. This parameter is used solely under Windows.
Se non viene specificata alcuna unità o se l'unità è una stringa a lunghezza zero (""), CurDir restituisce il percorso dell'unità corrente. LibreOffice in Basic viene segnalato un errore se la sintassi della descrizione dell'unità non è corretta o se l'unità non esiste.
Questa funzione non distingue tra maiuscole e minuscole.
Sub ExampleCurDir
Dim sDir1 As String, sDir2 As String
sDir1 = "C:\Test"
sDir2 = "D:\Private"
ChDir( sDir1 )
MsgBox CurDir
ChDir( sDir2 )
MsgBox CurDir
End Sub