Delete Reference by code

public void ADU_DeleteReference()
{
    #AOT
    #Properties
    TreeNode        referencesNode;
    TreeNode        referenceNode;
    SysReference    existingReference;
    ;

    referencesNode  =   TreeNode::findNode( #ReferencesPath );

    if( referencesNode )
    {
        referenceNode = referencesNode.AOTfindChild( "REFERENCE_NAME" );
        referenceNode.AOTdelete();
    }
}
Advertisements