wpContainsFolders
Appearance
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method determines whether the folder contains any subfolders.
Syntax
_wpContainsFolders(somSelf, pfSubFolders)
Parameters
- somSelf (WPFolder *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPFolder.
- pfSubFolders (BOOL *) - output
- Flag indicating whether the folder contains subfolders.
- TRUE: The folder contains subfolders.
- FALSE: The folder does not contain subfolders.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE: Successful completion.
- FALSE: Error occurred.
How to Override
This method is generally not overridden.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPFolder *somSelf; /* Pointer to the object on which the method is being invoked. */ BOOL *pfSubFolders;/* Flag indicating whether the folder contains subfolders. */ BOOL rc; /* Success indicator. */ rc = _wpContainsFolders(somSelf, pfSubFolders);