Wednesday 6 April 2011

quotes in VBScript

There two ways to do that:
  1. Double the quotes (""):
    MsgBox "#1: ""QTP - QuickTest Professional"""
    Use 2 double quotation marks to include a quote character in the string.
    So, the result is:

  2. Use ANSI character code - Chr(34):
    MsgBox "#2: " & Chr(34) & "QTP - QuickTest Professional" & Chr(34)
    Since, the ANSI code if quotation mark = 34, we can use Chr function.
    The result is:
Source

0 comments:

Post a Comment

Apex Monkeys © 2008. Design by :Yanku Templates Sponsored by: Tutorial87 Commentcute Software blogs Computers Blogs