Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CNContact.Show

Shows a contact as sheet.

Component Version macOS Windows Linux Server iOS SDK
Contacts 10.1 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "CNContact.Show"; ContactIdentifier )   More

Parameters

Parameter Description Example
ContactIdentifier The contact identifier. "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E"

Result

Returns OK or error.

Description

Shows a contact as sheet.
Shows Cancel and Edit buttons to work on the contact.

Does currently not work on MacOS due to bugs in Apple frameworks.
Implemented for macOS as popover in v12.5.

Examples

Show contact:

# show a contact by ID (iOS only currently)
Set Variable [ $r ; Value: MBS( "CNContact.Show"; PlaceHolder::ContactID ) ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to show contact" ; $r ]
End If

See also

Release notes

  • Version 12.5
  • Version 10.1

Example Databases

Blog Entries

This function checks for a license.

Created 31st January 2020, last changed 23th September 2022


CNContact.SetValue - CNContact.ShowInAddressbook