WpAppendObject: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:wpAppendObject}} This method is specific to Version 4, or higher, of the OS/2 operating system. This instance method appends a file system object to another file system object. ==Syntax== _wpAppendObject(somSelf, targetObject, fMove) ==Parameters== ;''somSelf'' (WPObject *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPObject. ;''targetObject'' (WPObject *) - input :Object to append to..." |
(No difference)
|
Latest revision as of 22:43, 10 September 2025
This method is specific to Version 4, or higher, of the OS/2 operating system.
This instance method appends a file system object to another file system object.
Syntax
_wpAppendObject(somSelf, targetObject, fMove)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
- targetObject (WPObject *) - input
- Object to append to.
- fMove (BOOL32) - input
- Type of move flag.
- TRUE: Moves and appends an object.
- FALSE: Copies and appends an object.
Returns
- rc (BOOL32) - returns
- Success indicator.
- TRUE: Successful completion.
- FALSE: Error occurred.
Usage
This method can be called at any time to append a file to the end of another file.
How to Override
This method can be overridden by an object class that wants to provide the capability of combining objects.
Example Code
This example appends the file "c:\file2" to the end of "c:\file1" and preserves the original "c:\file2" file.
WPObject *File1,File2; File1 = _wpQueryObjectFromPath(_WPFileSystem,"c:\file1"); File2 = _wpQueryObjectFromPath(_WPFileSystem,"c:\file2"); _wpAppendObject(File2,File1,FALSE);