AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Changing the current drive
fCurrentDrive (Example)
Changing the current drive
WINDEVWindowsCódigo de Usuario (UMC) The following code is used to change the current drive. The path of the new current drive is specified by the user in an edit control (EDT_DrivePath).
In this example, we consider that the user enters the full path of the drive (e.g., A:).
// -- Click code of BTN_ChangeCurrentDrive
// Declare the variable
ResCurrentDrive is string
// Change the current drive
ResCurrentDrive = fCurrentDrive(EDT_DrivePath)
// Error?
IF ErrorInfo() = "" THEN
Info("The current drive is: " + ResCurrentDrive)
ELSE
// Display the error message
Error(ErrorInfo(errMessage))
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/08/2022

Señalar un error o enviar una sugerencia | Ayuda local