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:
0 comments:
Post a Comment