Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

StringBuffer-Insert method

Updated on August 16, 2022

Use this method to manipulate local variables of type String Buffer for the current activity that are stored in a Java StringBuffer object. This method inserts a string into the buffer at a specific byte offset position.

Local variables are defined on the Parameters tab of an activity.

Parameters

This method has the following parameters:

ParameterDescription
BufferEnter the name of a local variable to be stored in the StringBuffer.
OffsetIndicate the index (offset) position within the buffer. Enter an integer constant, or an expression that evaluates to an integer value.
StrInsertEnter an expression (such as a literal value, a property reference, a linked property reference, or a function call) the produces a text value to append.

Results

The system inserts the text into the StringBuffer, starting at the indicated byte position, and associates it with the named local variable.

Checking the method status

This method updates the pxMethodStatus property. See How to test method results using a transition.

Methods and instructions by function

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us