The following tables describe C data types for use in Visual Basic applications whenever the VB API function refers to ESB_xx...x_T (except for user-defined types). Visual Basic does not allows the definition of new data types based on these data types.
Data Type | Essbase Type |
---|---|
As String * 1 | ESB_CHAR_T |
As Integer | ESB_SHORT_T |
As Long | ESB_LONG_T |
As String * 1 | ESB_UCHAR_T |
As Integer | ESB_USHORT_T |
As Long | ESB_ULONG_T |
As Long | ESB_FLOAT_T |
As Long | ESB_DOUBLE_T |
As Long | ESB_TIME_T |
As Long | ESB_DATE_T |
Data Type | Essbase Type | Description |
---|---|---|
As Integer | ESB_ACCESS_T | Security access level. Possible bit values are:
The access types are combinations of privileges. The valid values are:
|
As Integer | ESB_OBJTYPE_T | File object type. Single object types are:ESB_OBJTYPE_NONE ESB_OBJTYPE_OUTLINE ESB_OBJTYPE_CALCSCRIPT ESB_OBJTYPE_REPORT ESB_OBJTYPE_RULES ESB_OBJTYPE_ALIAS ESB_OBJTYPE_STRUCTURE ESB_OBJTYPE_ASCBACKUP ESB_OBJTYPE_BINBACKUP ESB_OBJTYPE_EXCEL ESB_OBJTYPE_LOTUS2 (No longer supported) ESB_OBJTYPE_LOTUS3 (No longer supported) ESB_OBJTYPE_TEXT ESB_OBJTYPE_PARTITION ESB_OBJTYPE_LOTUS4 (No longer supported) ESB_OBJTYPE_WIZARD ESB_OBJTYPE_SELECTION ESB_OBJTYPE_LRO Combined object types are: ESB_OBJTYPE_BACKUP ESB_OBJTYPE_WORKSHEET ESB_OBJTYPE_DATA ESB_OBJTYPE_ALL |
Note: | The values for bitmap data types consist of bit values that are combined to provide additional values when appropriate. For example, a caller needing WRITE access to a database must have the READ and WRITE privileges, thus ESB_ACCESS_WRITE equals the bit values for ESB_PRIV_READ and ESB__PRIV_WRITE. Similarly, ESB_OBJTYPE_BACKUP is a combination of ESB_OBJTYPE_ASCBACKUP and ESB_OBJTYPE_BINBACKUP. |
Table 16. Additional Data Types
Data Type | Essbase Type | Description |
---|---|---|
ByVal As String * 1 | ESB_BOOL_T | boolean |
ByVal As String | *ESB_STR_T | string (array of char) |
ByVal As Long | *ESB_HINST_T | API instance handle |
ByVal As Long | *ESB_HCTX_T | API context handle |
As Any | ESB_VOID_T | void |
ByVal As Long | ESB_SIZE_T | size of a memory block |
ByVal As Integer | ESB_ACCESS_T | Essbase access level |
ByVal As Long | ESB_LOGINID_T | Essbase login id |
Data Type | Essbase Type | Description |
---|---|---|
As Integer | *ESB_PSHORT_T | pointer to short |
As Long | *ESB_PLONG_T | pointer to long |
As Integer | *ESB_PUSHORT_T | pointer to unsigned short |
As Long | *ESB_PULONG_T | pointer to unsigned long |
As Long | *ESB_PFLOAT_T | pointer to float |
As Long | *ESB_PDOUBLE_T | pointer to double |
As Any | *ESB_PVOID_T | pointer to void |
As Long | *ESB_PSIZE_T | pointer to size of a memory block |
As Long | *ESB_PHINST_T | pointer to VB API instance handle |
As Long | *ESB_PHCTX_T | pointer to VB API context handle |
As Integer | *ESB_PACCESS_T | pointer to security access level |
As Long | *ESB_PLOGINID_T | pointer to Essbase login id |
Table 18. Miscellaneous Types
Data Type | Essbase Type | Description |
---|---|---|
ByVal As Long | ESB_STS_T | return value from API functions |
As Long | ESB_FUNC_T | pointer to function |
Data Type | Essbase Type | Description |
---|---|---|
chr$(1) | ESB_TRUE | Boolean TRUE to be used in data structures |
chr$(0) | ESB_FALSE | Boolean FALSE to be used in data structures |
1 | ESB_YES | YES flag to be used in the list of the VB API function parameters |
0 | ESB_NO | NO flag to be used in the list of the VB API function parameters |
ByVal 0& | NULL | Null |