Renames an existing Application, either on the client or the server. If the Application is running on the server, it is first stopped.
Syntax
EsbRenameApplication (hCtx, AppName, nAppName) ByVal hCtx As Long ByVal AppName As String ByVal nAppName As String
Parameter | Description |
---|---|
hCtx | VB API context handle. |
AppName | Name of an existing application to rename. |
nAppName | New name of the application. See Application Name Limits. |
Notes
Renaming a client application renames the local application directory.
Return Value
None.
Access
For a server application, the caller must have Application Create/Delete/Edit privilege (ESB_PRIV_APPCREATE).
Example
Declare Function EsbRenameApplication Lib "ESBAPIN" (ByVal hCtx As Long, ByVal OldName As String, ByVal NewName As String) As Long Sub ESB_RenameApplication () Dim sts As Long Dim OldName As String Dim NewName As String OldName = "Sample" NewName = "NewSamp" '******************* ' Rename Application '******************* sts = EsbRenameApplication (hCtx, OldName, NewName) End Sub
See Also