COPY OBJECT


General Form:

     COPY OBJECT SourceFile TO DestinationFile


The COPY OBJECT statement is used to copy native files from the server to KClient's cache. No path should be specified for the destination file name as the implicit directory is the cache directory. The files can then be used for, say, picture objects. Subdirectories may not be created.

The client $DECLARE function 'KCMLGetCacheDir() can be used to get the directory in use as the cache and 'KCMLGetCacheFileName() can be used to get the full filename for a file in the cache given the DestinationFile name used in the COPY OBJECT.

Syntax examples:

COPY OBJECT "/images/Exclamation.png" TO "Alert.png"