base.StringBuffer.join()

base.stringbuffer.join() concatenates all strings from the first parameter array using separator if it is defined in the second parameter.

This method has two parameters:

This method returns the StringBuffer object.

 

MAIN

 

DEFINE sb base.StringBuffer

DEFINE arr_str DYNAMIC ARRAY OF STRING

 

LET arr_str[1] = "Adam"

LET arr_str[2] = "Berta"

LET arr_str[3] = "Chris"

LET arr_str[4] = "Darren"

LET arr_str[5] = "Eva"

 

LET sb = base.StringBuffer.create()

CALL sb.join(arr_str,";")

DISPLAY sb.toString()

END MAIN

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.