Update a process variable with a backslash at the end of the string

評論

4 條評論

  • Avatar
    Loren Bratzler

    Have you tried escaping the backslash by using a second backslash?

    e.g.:  "Testdomain\\"

    0
    評論操作 永久連結
  • Avatar
    Christopher Lauss

    Thanks for this hint. Update a variable with "Testdomain\\" works. After this, it's possible to Concat two strings e.g. @Concat(${/pd:AP/pd:processFields/pd:Test1},${/pd:AP/pd:formFields/pd:Test2})
    Test1 contains: Testdomain\ 
    Test2 conatins: Test

    Result is: Testdomain\Test

     

    0
    評論操作 永久連結
  • Avatar
    Ryan

    Are there documentation as to what other symbols would encounter the same issue as the backslash do?

    0
    評論操作 永久連結
  • Avatar
    Moin

    Hello Ryan,

    Some Commonly used special characters like ('), ("), (\),(?) in your string value needs to escape by prefixing them with a (\).

    Here are some examples:

    "Hello\\" will result in Hello\
    "\"Hi there\"" will result in "Hi there"
    "Someone\'s" will result in Someone's
    "Are you there\?" will result in Are you there?

    for all the characters which need to be escaped , kindly refer the link : https://learn.microsoft.com/en-us/cpp/c-language/escape-sequences?view=msvc-170

    Best Regards

    1
    評論操作 永久連結

登入寫評論。