EsbGetLocalPath() gets the full local file path for a specific object file on the client.
EsbGetLocalPath (hCtx, ObjType, AppName, DbName, ObjName, isCreate, Path, szPath)
ByVal hCtx As Long ByVal ObjType As Long ByVal AppName As String ByVal DbName As String, ByVal ObjName As String ByVal isCreate As Integer ByVal Path As String ByVal szPath As Integer
hCtx | Essbase API context handle returned by EsbCreateLocalContext(). |
ObjType | Object type (must be single type). Object types are listed under Bitmask Data Types. |
AppName | Application name. |
DbName | Database name. If an empty string, uses the Application sub-directory. |
ObjName | Object name. |
isCreate | Create directories flag. If TRUE, the appropriate application and database sub-directories will be created if necessary. If FALSE, and the directories do not exist, an error will be generated. |
Path | Buffer to receive allocated local path name string. |
szPath | Size of the buffer to receive allocated local path name string. |
Declare Function EsbGetLocalPath Lib "ESBAPIW" (ByVal hCtx As Long, ByVal ObjType As Integer, ByVal AppName As String, ByVal DbName As String, ByVal ObjName As String, ByVal Create As Integer, ByVal Path As String, ByVal szPath As Integer) As Long Sub ESB_GetLocalPath () Dim sts As Long Dim AppName As String Dim DbName As String Dim ObjName As String Dim ObjType As Integer Dim Create As Integer Const szPath = 128 Dim Path As String * szPath AppName = "Sample" DbName = "Basic" ObjName = "Basic" ObjType = ESB_OBJTYPE_TEXT Create = ESB_YES '*************** ' Get local path '*************** sts = EsbGetLocalPath (hCtx, ObjType, AppName, DbName, ObjName, Create, Path, szPath) End SubEsbCreateLocalContext()