Sets the ESSBASEPATH environment variable for the current process.
Syntax
ESSG_FUNC_M EssGSetPath (pszPath);
Parameter | Data Type | Description |
---|---|---|
pszPath; | ESSG_STR_T | Pointer to the string describing the ESSBASEPATH environment variable |
Notes
Call EssGSetPath() before calling EssGInit().
pszPath cannot exceed 120 characters, as defined in ESSG_PATHLEN.
pszPath applies only to the current process.
Essbase DLLs must be accessible from the system path. EssGSetPath() does not resolve the path for the Essbase DLLs.
Return Value
If successful, returns ESSG_STS_NOERR.
If pszPath is too long, returns API_NAME_TOO_LONG (1030009).
Example
ESS_STS_T ESSG_SetPath(ESS_STR_T pszPath) { ESS_STS_T sts ESSG_STR_T pszPath = "C:\Hyperion\products\Essbase"; sts = EssGSetPath (pszPath); return sts; }
See Also