Click or drag to resize

AdjustFName Function

Remove spaces from a file name specified as a string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.5
Syntax
 FUNCTION AdjustFName(
	cFileName AS STRING
) AS STRING

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