Click or drag to resize

ForceExt Function (String, String)

X#
Returns a string with the old file name extension replaced by a new extension.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION ForceExt(
	cFileName AS STRING,
	cExtension AS STRING
) AS STRING
Request Example View Source

Parameters

cFileName
Type: String
Specifies the file name (with or without a path or extension), which will get a new extension.
cExtension
Type: String
Specifies the new extension (without a period) for cFileName.

Return Value

Type: String
Character
See Also