'KCMLGetCacheFileName(sFile$, sPath$, nPathSize)
Return the path to a file in Kclient's cache using the name supplied to COPY OBJECT.
Arguments
STR() | sFile$ | [in] | The file name. |
STR() | sPath$ | [out] | String to receive the path. |
INT() | nPathSize | [in] | Size of sPath. |
Returns
Syntax
The following definition is built into KCML. You do not have to include it in your own code.
$DECLARE 'KCMLGetCacheFileName(STR(), RETURN STR(), INT())
Remarks
This function allows the server to get the full path name of a file in the client directory used to cache forms and pictures. The buffer passed must be large enough to hold the returned string, ideally _MAX_PATH., otherwise a blank string will be returned.
Example
DIM cache$_MAX_PATH, localfile$="testobj" COPY OBJECT file$ TO localfile$ 'KCMLGetCacheFileName(localfile$, cache$, LEN(STR(cache$)))
See Also
COPY OBJECTFurther Information
Introduced | KCML 6.60 |
Compatibility | KClient |
See Also