Leave feedback
  • Question

    String Concatenation

Enter a new topic
  • Sreenivas Reddy Sreenivas Reddy
    0 likes 343 views

    Hey Guys,

    I want to know , how can we concatenate 2 strings into a single string variable. I have checked the existing string handling functions , but to find nothing to suit my need.

     

    Any help would be appreciated.

    Thanks ,

    Sree

    Friday 15 July, 2016
  • Best Answer
    David Bares David Bares OpenText Employee Administrator StreamServe Employee
    1 likes

    Although I agree with Enrik that correct answer is +, there must be some more example needed, because the topic would have to be closed by this time otherwise.

    $concatenated = "acb" + $myvar;
    $twofields = &field1 + ":" + &field2;
    $another = "Count: " + str(arraySize( $arrValues ));

    Friday 05 August, 2016
  • Enrik Beste Enrik Beste StreamServe Employee
    0 likes

    +

    Friday 15 July, 2016
  • David Bares David Bares OpenText Employee Administrator StreamServe Employee
    1 likes

    Although I agree with Enrik that correct answer is +, there must be some more example needed, because the topic would have to be closed by this time otherwise.

    $concatenated = "acb" + $myvar;
    $twofields = &field1 + ":" + &field2;
    $another = "Count: " + str(arraySize( $arrValues ));

    Friday 05 August, 2016