Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Addressbook.enabledAccounts
Queries list of account identifies for enabled accounts.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Addressbook | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
Deprecated
This function was deprecated. Use Contacts functions instead.
Parameters
none
Result
Returns list or error.
Description
Queries list of account identifies for enabled accounts.Examples
Show enabled accounts:
Set Variable [$accounts; Value:MBS( "Addressbook.enabledAccounts" )]
Set Variable [$count; Value:ValueCount($accounts)]
Set Variable [$index; Value:1]
Loop
Set Variable [$account; Value:GetValue($accounts; $index)]
Show Custom Dialog ["Identifier: " & $account & ¶ &
"Name: " & MBS( "Addressbook.Account.Name"; $account) & ¶ &
"Type: " & MBS( "Addressbook.Account.Type"; $account) & ¶ &
"Main: " & MBS( "Addressbook.Account.isMainAccount"; $account) & ¶ &
"URL: " & MBS( "Addressbook.Account.URL"; $account)]
Set Variable [$index; Value:$index +1]
Exit Loop If [$index > $count]
End Loop
See also
- Addressbook.Account.isMainAccount
- Addressbook.Account.Name
- Addressbook.Account.Type
- Addressbook.Account.URL
- Addressbook.allAccounts
- Addressbook.defaultAccount
- Addressbook.persistentAccounts
This function is free to use.
Created 17th March 2016, last changed 17th March 2016
