KeychainItem.Comment

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As String )


aKeychainItem.Comment = newStringValue
or
StringValue = aKeychainItem.Comment

Supported for all project types and targets.

End user editable string containing comments for this Keychain item.


Example

This example sets the contents of the comment field in a TextField on the input form.

Var kc As Keychain
Var kci As KeychainItem

kc = New Keychain(Listbox1.SelectedIndex)

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

PasswordField.Text = kc.FindPassword(kci)

ServiceNameField.Text = kci.ServiceName
AccountNameField.Text = kci.AccountName
CommentField.Text = kci.Comment
LabelField.Text = kci.Label
End If