KeychainItem.Label

From Xojo Documentation

Revision as of 21:20, 13 February 2022 by Gperlman (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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.Text

PasswordField.Text = kc.FindPassword(kci)

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