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
    评论操作 固定链接

请先登录再写评论。