Progress
ADM 2 Reference


removeLink (smart.p)

Removes a specific link between two objects.

Parameters:

INPUT phSource AS HANDLE

Source procedure handle.

INPUT pcLink AS CHARACTER

Link type name.

INPUT phTarget AS HANDLE

Link target object handle.

Returns: Nothing (procedure)

Notes:

Examples:

/* This example removed the Update link between a visual SmartObject such 
   as a SmartDataViewer and its associated SmartDataObject, perhaps in 
   response to an application event or security check which should make 
   the SmartDataObject non-updatable. */ 
hTarget = WIDGET-HANDLE(dynamic-function(‘linkHandles’, INPUT  
   ‘Update-Target’:U)). 
IF VALID-HANDLE(hTarget) THEN 
   RUN removeLink(THIS-PROCEDURE, ‘Update’:U, hTarget). 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095