CxAcsEditor Methods
The CxAcsEditor object contains the following methods:
Connect
The Connect method connects to a ACS.
Syntax
Connect(DomainSiteService As String)
Parameters
| Parameter | Required | Description |
|---|---|---|
|
DomainSiteService |
Yes |
The [Domain]Site.Service to which to connect. A domain is optional. The service must be a valid ACS. |
Example
The following example creates and connects the CxAcsEditor object.
|
Sub Dim AcsEditor Set AcsEditor = CreateObject("CxEditors.CxAcsEditor") AcsEditor.Connect("[5410]CYGDEMO.ACS") End Sub |
Copy
The Copy method launches a Copy ACS Application property sheet initialized with the information in the specified record.
Syntax
Copy(QueueKey As String) As Integer
Parameters
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to copy. |
Remarks
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a Copy ACS Application property sheet for record "0000000048."
|
Sub Dim iRet iRet = AcsEditor.Copy("0000000048")
MsgBox iRet End Sub |
Delete
The Delete method launches a Delete ACS Application property sheet initialized with the information in the specified record.
Syntax
Delete(QueueKey As String) As Integer
Parameters
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to delete. |
Remarks
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a Delete ACS Application property sheet for record "0000000048."
|
Sub Dim iRet iRet = AcsEditor.Delete("0000000048")
MsgBox iRet End Sub |
Disconnect
The Disconnect method disconnects from the connected ACS.
Syntax
Disconnect()
Example
The following example disconnects the AcsEditor object.
|
Sub AcsEditor.Disconnect End Sub |
Edit
The Edit method launches a property sheet initialized with the information in the specified record.
Syntax
Edit(QueueKey As String) As Integer
Parameters
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to edit. |
Remarks
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a property sheet for record "0000000048."
|
Sub Dim iRet iRet = AcsEditor.Edit("0000000048")
MsgBox iRet End Sub |
New
The New method launches a New ACS Application property sheet.
Syntax
New() As Integer
Remarks
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a New ACS Application property sheet.
|
Sub Dim iRet iRet= AcsEditor.New MsgBox iRet End Sub |
ShowAppsList
The ShowAppsList method launches an Applications List dialog box from which the user can add, delete, edit, and copy ACS applications.
Syntax
ShowAppsList() As Integer
Remarks
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
| 2 | Close button was pressed. |
Example
The following example launches an Applications List dialog box.
|
Sub Dim iRet iRet = AcsEditor.ShowAppsList
MsgBox iRet End Sub |
ShowGroupsList
The ShowGroupsList method launches a Groups List dialog box from which the user can add, delete, edit, and copy ACS groups.
Syntax
ShowGroupsList() As Integer
Remarks
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
| 2 | Close button was pressed. |
Example
The following example launches a Groups List dialog box.
|
Sub Dim iRet iRet = AcsEditor.ShowGroupsList
MsgBox iRet End Sub |


