Kbase P84601: ADM2. How to retrieve a customized Handle Link (New Link) in a Container?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/12/2004 |
|
Status: Unverified
GOAL:
ADM2. How to retrieve a customized Handle Link (New Link) in a Container?
GOAL:
ADM2. How to retrieve a Handle Link in a Container?
GOAL:
Retriving an Handle Link in a Container
FIX:
Use the Dynamic-Function linkhandles.
linkHandles (smart.p)
Takes a link name and returns a list of handles of objects at the other end of that link, relative to the TARGET-PROCEDURE.
Parameters:
INPUT pcLink AS CHARACTER
The link name (including "-SOURCE" or "-TARGET").
Returns: CHARACTER (Comma-separated list of handles to the SmartObject procedures at the other end of the link.)
As for example retrieving from a button a custom created link from a Frame Within a Window to a SmartToolBar, named "pp".
DO:
DEFINE VARIABLE hDataSource AS HANDLE NO-UNDO.
hDatasource = dynamic-function('linkHandles' IN h_fframe1 ,'pp-TARGET').
MESSAGE hdatasource.
RUN displaylinks.
END.