AdjustFNameA Function | |
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.19
Syntax FUNCTION AdjustFNameA(
cFileName REF STRING
) AS STRING
public static string AdjustFNameA(
ref string cFileName
)
Request Example
View SourceParameters
- cFileName
- Type: String
The file name you want to adjust.
Return Value
Type:
StringcFileName 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:
1cFile := " BadFileName .DBF"
2? AdjustFNameA(cFile)
3? cFile
See Also