AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Finding out the long path of a file
fLongPath (Example)
Finding out the long path of a file
The following code is used to find out the long path of a file. The file name and path are selected by fSelect.
// Declare the variables
FilePath is string
ResLongPath is string
 
// Select a file
FilePath = fSelect("C:\MyDirectories", "", "Selecting a file", ...
"All files (*.*)" + TAB + "*.*", "", fselOpen + fselExist)
 
// Retrieve the long path
ResLongPath = fLongPath(FilePath)
 
// Display an error message if the retrieval was not performed
IF ResLongPath = "" THEN
Error(ErrorInfo(errMessage))
ELSE
  // Display the long path
  Info("The long path is: " + ResLongPath)
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