Difference between revisions of "KeychainItem.Description"

From Xojo Documentation

 
Line 18: Line 18:
 
Var kci As KeychainItem
 
Var kci As KeychainItem
  
kc = New KeyChain(Listbox1.SelectedIndex)
+
kc = New Keychain(Listbox1.SelectedIndex)
  
 
If kc <> Nil Then
 
If kc <> Nil Then

Latest revision as of 23:51, 30 July 2019

Property (As String )
aKeychainItem.Description = newStringValue
or
StringValue = aKeychainItem.Description

Supported for all project types and targets.

End-user visible string describing this Keychain item.

Example

This example sets the value of the Description field on a form.

Var kc As Keychain
Var kci As KeychainItem

kc = New Keychain(Listbox1.SelectedIndex)

If kc <> Nil Then
kci = New KeychainItem
kci.ServiceName = SearchField.Value

PasswordField.Value = kc.FindPassword(kci)

ServiceNameField.Value = kci.ServiceName
AccountNameField.Value = kci.AccountName
CommentField.Value = kci.Comment
DescriptionField.Value = kci.Description
End If