Creates a new application with the option of data storage mode: block (multidimensional) or aggregate.
Syntax
EsbCreateStorageTypedApplication (hCtx, AppName, StorageType) ByVal hCtx As Long ByVal AppName As String ByVal StorageType As Integer
Parameter | Description |
---|---|
hCtx | VB API context handle. |
AppName | Name of application to create. See Application Name Limits. |
StorageType | The data storage type of the new application. The valid values for StorageType are:
|
Notes
The new application is created in non-Unicode mode.
Creating a client application creates a directory to contain local application files.
A newly created database or application is not automatically set to active. Call EsbSetActive() after calling EsbCreateDatabase(), EsbCreateApplication(), or EsbCreateStorageTypedApplication() to keep subsequent functions, such as EsbRestructure(), from operating on the wrong database or application (the application or database that is already active).
Return Value
None.
Access
For a server application, the caller must have application Create/Delete/Edit privilege (ESB_PRIV_APPCREATE).
Example
Declare Function EsbCreateStorageTypedApplication Lib "ESBAPIN" (ByVal hCtx As Long, ByVal AppName As String, ByVal StorageType As Integer) As Long Sub ESB_CreateStorageTypedApplication () Dim sts As Long Dim AppName As String Dim StorageType as Integer AppName = "Sample" '******************* ' Create Storage Typed Application '******************* sts = EsbCreateStorageTypedApplication (hCtx, AppName, StorageType) End Sub
See Also