Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTBUFF

CTBUFF_Get
Description
Retrieves a portion (or all) of the CTBUFF value.

Prototype

			
     DCTBUFF_Get...
     D                 PR            10I 0
     D@This                            *   Value
     D@Str                             *   Value
     D@From                          10I 0 Value
     D@Len                           10I 0
						
Parameters
@This
TypePointer (*)
Passing ModeValue
DescriptionThe address of an CTBUFF instance. This pointer MUST be obtained through a call to CTBUFF_Constructor.
@Str
TypePointer (*)
Passing ModeValue
DescriptionThe address of a buffer that will receive the CTBUFF instance value (or portion of).
@From
Type10I 0
Passing ModeValue
DescriptionThe starting position within the CTBUFF instance from which to copy the value into the out buffer. The first position starts at 1.
@Len
Type10I 0
Passing ModeBy Reference
DescriptionThe number of bytes to copy into the out buffer. The actual number of bytes will never exceed the size of the CTBUFF instance value regardless of this parameter value. Specify -1 to copy up to the end of the CTBUFF instance value. Make sure the out buffer is large enough to hold the requested byte string (especially if the instance holds a multi-byte character string).
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The extraction succeeded.
CS_FAILURE1The extraction failed.