AppendStringBuilderString()

Syntax

Result = AppendStringBuilderString(#StringBuilder, String$)
Description
Append a string to the end of the current string builder content.

Parameters

#StringBuilder The string builder to use.
String$ The string to append.

Return value

Returns nonzero if the string was successfully appended and zero if there was an error.

Remarks

This function efficiently appends the string to the internal buffer, growing the buffer as needed. Multiple calls to this function can be chained together to build complex strings efficiently.

Example

  CreateStringBuilder(0)
  
  For i = 1 To 500
    AppendStringBuilderString(0, "Line " + Str(i))
    AppendStringBuilderString(0, #CRLF$)
  Next
    
  Result$ = GetStringBuilderString(0)
  Debug Result$

See Also

CreateStringBuilder(), GetStringBuilderString(), ResetStringBuilder(), AppendStringBuilderStringN()

Supported OS

All

StringBuilder Index - AppendStringBuilderStringN() ->