Click or drag to resize

JustStem Function

X#
Returns the stem name (the file name before the extension) from a complete path and file name.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION JustStem(
	cPath AS STRING
) AS STRING
Request Example View Source

Parameters

cPath
Type: String
Specifies the name, which may include the full path, of the file for which you want to extract information. The maximum length of the string passed to cPath is determined by the Operating System.

Return Value

Type: String
String
Examples
X#
1? JustDrive("C:\Folder\test.txt")  // C:
2? JustExt("C:\Folder\test.txt")    // .txt
3? JustPath("C:\Folder\test.txt")   // C:\Folder
4? JustFName("C:\Folder\test.txt")  // test.txt
5? JustStem("C:\Folder\test.txt")   // test
See Also