Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

CNContactStore.DeleteGroup

Deletes a group.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Contacts 8.4 Yes No No No Yes
MBS( "CNContactStore.DeleteGroup"; GroupIdentifier )   More

Parameters

Parameter Description Example value
GroupIdentifier The group identifier.
Can be identifier or group name.
"F527BF7C-6426-4D48-86CA-CB5E57743FFE:ABGroup"

Result

Returns OK or error.

Description

Deletes a group.

Examples

Delete group:

If [ Length ( Contacts::GroupID ) = 0 ]
    Show Custom Dialog [ "Failed to delete a group" ; "No ID in field" ]
Else
    Set Variable [ $r ; Value: MBS( "CNContactStore.DeleteGroup"; Contacts::GroupID) ]
    If [ MBS("IsError") ]
        Show Custom Dialog [ "Failed to delete a group" ; $r ]
    Else
        Set Field [ Contacts::GroupID ; "" ]
    End If
End If

See also

Example Databases

Created 1st August 2018, last changed 30th August 2018


CNContactStore.DeleteContact   -   CNContactStore.GroupHierarchy

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins