Search code examples
vbscripthp-uft

Bereak single line code into multiple lines in QTP


_ works to split a long line into multiple line in VBSCript. Wondering if it works for QTP as well


Solution

  • Use & _ for break your long lines.

    sString = "Something very long " & _
                         "More on that" & _
                              "A little more"
    

    Reference is here