Sponsored Ad

Thursday, November 11, 2010

QTP Software Testing: How to Get ANSI Code of Character in VBScript

While using QTP tool for automated testing, sometimes you need to find the ANSI code for given Character.  The Asc function is used in VBScript to find the ANSI code of the first char of given string. Please note that in given Example S and s have different ANSI code.

Dim myANSI
myANSI= "S"
myANSI= Asc(myANSI)
MsgBox myANSI

myANSI= "s"
myANSI= Asc(myANSI)
MsgBox myANSI

Output of above software testing program:

QTP: How to Get ANSI Code of Character in VBScript

QTP: How to Get ANSI Code of Character in VBScript

0 comments:

Post a Comment

Sponsored Ad

Development Updates

Tech Updates