Progress
ADM 2 Reference


propertyType (smart.p)

Locates the "set" property function for the specified property name either locally or in a SUPER procedure, and returns its data type.

Parameters:

INPUT pcPropName AS CHARACTER

Property name.

Returns: CHARACTER (The data type of the property.)

Notes: Generally used internally by the ADM.

Examples:

/* This code, adapted from the addLink procedure, determines whether a 
   link is permitted to have multiple Targets based on whether the 
   supporting property function accepts a handle (for a single object 
   handle) or a character string (for a comma-separated list of 
   handles. */ 
IF dynamic-function(‘propertyType’:U, INPUT pcLinkType + "Source":U) = 
"CHARACTER":U THEN 
  RUN modifyListProperty (‘ADD’:U º )   /* To add the string to a list. */ 
ELSE dynamic-function(‘set’:U + pcLinkType + "Source":U, INPUT phTarget). 


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