ForceExt Function (String, String, Logic) | |
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
public static string ForceExt(
string cFileName,
string cExtension,
bool tlOptAsVfp9
)
Request Example
View SourceParameters
- 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