AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Equivalence
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Builds a complete file path from the directory and short name of a file. This function is mainly used to get a valid file name without having to worry about the presence of separators in the path ('/' or '\') or about their direction according to the platform.
Example
sLog is string
sLog = fBuildPath(fExeDir(), CUSTOMER.NAME, ".log")
 
Trace(fBuildPath("C:\My documents", "MyFile", "fic"))
Syntax
<Result> = fBuildPath(<Path> , <Short name> [, <Extension>])
<Result>: Character string
Valid file path.
<Path>: Character string
File directory. This directory can include '\' characters in the path.
<Short name>: Character string
Short name of file.
<Extension>: Optional character string
File extension.
If the '.' character is not specified at the beginning of the extension, this one is automatically added.
If this parameter is not specified, the extension is considered as being included in the <Short Name> parameter.
Remarks

Equivalence

The following code:
fBuildPath(<Directory>, <File>, <Extension>)
replaces the following code:
CompleteDir(<Directory>) + <File> + ["."] + <Extension>
Component: wd290std.dll
Versión mínima requerida
  • Versión 17
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