B4J Question Quotes in a string

Discussion in 'B4J Questions' started by HARRY, May 12, 2015.

  1. HARRY

    HARRY Active Member Licensed User


    A simple question.

    I use the jShell command to start a proces. The proces requires a number of parameters, being an array as String. One of these parameters contains a part between quotes. How can I define that?

    The parameter should finally look like: " --timestamp "%d-%m-%y %H-%M-%S"".

    I am searching now for one hour, but I cannot find the solution.

    Please some help.

  2. Erel

    Erel Administrator Staff Member Licensed User

    The simplest way to add quotes to a string is with the new smart string literal:
    $"this is a string "with quotes" "$
  3. HARRY

    HARRY Active Member Licensed User

    Thanks Erel,

    Sometimes it is so simple.