..msdn Add comment W32 Constants Translate this page
Concatenates two strings that represent properly formed paths into one path; also concatenates any relative path elements.|
__out LPTSTR lpszDest,
__in_opt LPCTSTR lpszDir,
__in LPCTSTR lpszFile
DECLARE INTEGER PathCombine IN shlwapi;
A pointer to a buffer with the null-terminated string to hold the combined path string.
lpszDir [in, optional]
A pointer to a null-terminated string of maximum length MAX_PATH that contains the directory path. This value can be NULL.
A pointer to a null-terminated string of maximum length MAX_PATH that contains the file path. This value can be NULL.
|Returns a pointer to a string with the concatenated path if successful, or NULL otherwise.|
FUNCTION VfpPathCombine(p1, p2, p3, p4, p5) As String
LOCAL cBuffer, cPath1, cPath2, nIndex, nCount
nCount = PCOUNT()
CASE nCount = 0
CASE nCount = 1
cBuffer = m.p1
FOR nIndex=2 TO nCount
cPath1 = STRTRAN(m.cBuffer, CHR(0), "")
cPath2 = EVALUATE("m.p" + TRANSFORM(m.nIndex))
cBuffer = REPLICATE(CHR(0), MAX_PATH)
PathCombine(@cBuffer, cPath1, cPath2)
RETURN STRTRAN(m.cBuffer, CHR(0), "")
|The directory path should be in the form of A:,B:, ..., Z:. |
The file path should be in a correct form that represents the file part of the path. The file path must not be null, and if it ends with a backslash, the backslash will be maintained.
|Translate this page:|
Visited in last 7 days: 73
|Created: ||2012-02-19 13:40:06|
|Modified: ||2012-02-19 13:44:40|
Copyright © 2001-2017
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.38), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.