Click or drag to resize

ForceExt Function (String, String, Logic)

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,
	tlOptAsVfp9 AS LOGIC
) 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.
tlOptAsVfp9
Type: Logic
Forces the use of the Vfp9 methodology which produces incorrect results in some cases.

Return Value

Type: String
Character
See Also