B4J Question Quotes in a string

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

  1. HARRY

    HARRY Active Member Licensed User

    Hi,

    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.

    Harry
     
  2. Erel

    Erel Administrator Staff Member Licensed User

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

    HARRY Active Member Licensed User

    Thanks Erel,

    Sometimes it is so simple.

    Harry
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice