KeychainItem.Label
From Xojo Documentation
Revision as of 23:44, 30 July 2019 by Gperlman (talk | contribs) (Gperlman moved page KeyChainItem.Label to KeychainItem.Label)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
Property (As String )
![]() |
This property is only available on the macOS platform. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this property on an incompatible platform. |
aKeyChainItem.Label = newStringValue
or
StringValue = aKeyChainItem.Label
Supported for all project types and targets.
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.
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
LabelField.Value = kci.Label
End If
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
LabelField.Value = kci.Label
End If