KeychainItem.Label

From Xojo Documentation

Property (As String )


aKeychainItem.Label = newStringValue
or
StringValue = aKeychainItem.Label

Supported for all project types and targets.

End-user editable string containing the label for this Keychain item.

Example

This example sets the text in a TextField to the value of the Label property.

Dim kc As Keychain
Dim 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
LabelField.Value = kci.Label
End If