QG_SetCacheSize(areaRef; maxCachedBytes):errorCode
areaRef Longint QGrid area reference
maxCachedBytes Longint Maximum cache size in bytes
error Longint Error result

Specify the maximum cache size of the QGrid area

Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.

Parameter maxCachedBytes specifies the plug-in area's maximum cache size in bytes. It must be between 64MB (64 * 1024 * 1024 bytes) and 512MB (512 * 1024 * 1024 bytes), otherwise error qg_paramErr is returned.

NOTE The default cache size for a plug-in area is 128MB (128 * 1024 * 1024 bytes).


   // Double the cache size of the plug-in area


$err:=QG_GetCacheSize (xGrid;$cacheSize)


$err:=QG_SetCacheSize (xGrid;$cacheSize)

Related commands

QG_GetCacheSize Get the maximum cache size of the QGrid area