GetValidationAccount

Returns the member ID of an application’s Validation Account setting.

Note:

To return the member ID of a Validation Account n property, use GetByIndexValidationAccount.

Syntax

<HsvMetadata>.GetValidationAccount plAccountID

Argument

Description

plAccountID

Long. Returns the account’s member ID. If the application does not have a validation account, -1 is returned.

Example

The following example tests the value returned by GetValidationAccount. If it is greater than -1, IHsvTreeInfo.GetLabel gets the validation account’s label, which is then placed into a text box. If GetValidationAccount returns -1, then the text box indicates that the application lacks a validation account.

Dim lAcctID As Long, sAcctName As String
m_cMetadata.GetValidationAccount lAcctID
If lAcctID > -1 Then
  m_cTreeInfo.GetLabel lAcctID, sAcctName
  txtValAcct.Text = sAcctName
Else
  txtValAcct.Text = "No validation account."
End If