You are here: Reference > Activity methods > StringBuffer-Insert

  StringBuffer-Insert method

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:

Parameter

Description

Buffer Enter the name of a local variable to be stored in the StringBuffer.
Offset Indicate the index (offset) position within the buffer. Enter an integer constant, or an expression that evaluates to an integer value.
StrInsert Enter 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.

Definitions local variables
Related topics Activity form — Completing the Parameters tab
StringBuffer-Append method
StringBuffer-Reset method

Methods and instructions by function