Progress
ADM 2 Reference
assignPageProperty (containr.p)
Sets the specified property in all objects on the CurrentPage of a SmartContainer. If some object on the page does not have the property, it is ignored without error.
Parameters:INPUT pcProp AS CHARACTER
The property to set.
INPUT pcValue AS CHARACTER
The value to assign to that property.
Returns: Nothing (procedure)Notes:
- This variation on assignLinkProperty is necessary because the notion of paging does not fit well with PUBLISH/SUBSCRIBE. This is because there is a single property (PageNTargets) that stores the handles of all of a SmartContainer’s objects that are not on page 0 in a specially delimited list.
- The pcValue parameter is specified in CHARACTER form but can be used to assign values to noncharacter properties.
- All objects in a Container will subscribe to initializeObject, etc., but the paging performs the operation on subsets of those objects at a time. That is, the container will not publish initializeObject to objects on a page other than zero until that page is first viewed. So properties such as HideOnInit, which are set as part of initialization, must be set page-by-page.
Examples:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |