Click or drag to resize

AdjustFNameA Function

X#
Remove spaces from a file name specified as a string, changing the contents of the original file name as well as the returned file name.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION AdjustFNameA(
	cFileName REF 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
AdjustFNameA() is the same as AdjustFName(), except that AdjustFNameA() removes the spaces from the original file name as well as those in the return value.
Examples
This example shows how AdjustFNameA() returns a new file name with spaces removed and adjusts the original file name as well:
X#
1cFile := "  BadFileName    .DBF"
2? AdjustFNameA(cFile)   // "BadFileName.DBF"
3? cFile                 // "BadFileName.DBF"
See Also

Reference

AdjustFNameA(String)