Back to product page
- Introduction
- License Agreement
- Objects
- Certificate
- Methods
- Properties
- BitCount
- CommonName
- Country
- Data
- FriendlyName
- Handle
- HasPrivateKey
- Issuer
- IssuerCommonName
- IssuerCountry
- IssuerEmail
- IssuerLocality
- IssuerOrganization
- IssuerState
- IssuerText
- IssuerUnit
- Locality
- Organization
- PrivateKey
- PublicKey
- PublicKeyOpenSSH
- PublicKeyRSA1
- PublicKeySSH
- SerialNumber
- SerialNumberDec
- SerialNumberHex
- State
- Text
- Unit
- ValidFrom
- ValidTo
- Version
- Certificates
- CertLocation
- CertStores
- Enumerations
- Certificate
- How to get support?
- Tehnical information
- Error list
Choose method
Shows dialog for choosing from available certificates.
Type
A Certificate object. Certificate that was chosen by the user.Syntax
- Basic
object.Choose (Title, Text, [OwnerHwnd])
The Choose(object,Title,Text,OwnerHwnd) syntax has these parts:
The Choose(object,Title,Text,OwnerHwnd) syntax has these parts:
object | An expression evaluating to an object of type Certificates. |
Title | Required. A String value. Holds title of 'choose' window. |
Text | Required. A String value. Holds text that will be shown above certificate list. |
OwnerHwnd | Optional. A Variant value. Holds HWND (handle of the window) for the 'choose' dialog. |
Remarks
Choose method will create and show new dialog that will list all certificates in the collection, allowing user to select one of his choice. Usually, Choose dialog will look like this:Most common, you will set it up to select certificates using following code:
Set Certificate1 = Location(CurrentUser).Item("Root").Choose("Choose - demo", "This is textual description...")
If user clicks on 'Cancel' then Nothing (NULL) will be returned, otherwise new Certificate object is created and populated with selected certificate data.