KeychainItem.AccountName

From Xojo Documentation

Revision as of 21:18, 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.AccountName = newStringValue
or
StringValue = aKeychainItem.AccountName

Supported for all project types and targets.

Contains the name of the account (required for adding, can be Nil to find).

Example

This example sets the value of the AccountName field in a TextField on the 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