Click or drag to resize

AdjustFName Function

X#
Remove spaces from a file name specified as a string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION AdjustFName(
	cFileName AS STRING
) AS STRING
Request Example View Source

Parameters

cFileName
Type: String
The file name you want to adjust.

Return Value

Type: String
cFileName with all spaces removed.
Remarks
Examples
This example shows how AdjustFName() removes the spaces from a file name without affecting the original file name:
X#
1cFile := "  BadFileName    .DBF"
2? AdjustFName(cFile)    // "BadFileName.DBF"
3? cFile                 // "  BadFileName    .DBF"
See Also