Automation Testing, Manual Testing, QTP/UFT 11 , QC/ALM 11 ,SAP TAO, Unix, Selenium, Oracle SQL, Shell Scripting and For Online Trinings to contact me : Cell:+91-8897972059 , Email Id : quicktestprotech@gmail.com

Tuesday, July 26, 2011

QTP ASCII CHR() CODE CHART

                                             QTP ASCII CHR() CODE CHART





ASCII
Entering/Reading ASCII codes - when using QTP - is sometimes needed to achieve certain functionality.
ASCII stand for American Standard Code for Information Interchange and it is a character encoding scheme based on the English alphabet.
QTP has two built in functions (ASC and Chr) that are helpful to know when you need to work with ASCII info.
ASC() Function
ASC()  is a QTP function that returns the code of the character passed to it. For example if you wanted to know what the ASCII/ANSI code for the pound symbol #:
Msgbox Asc(“#”)
The above will return the code 35
Chr() Function
If you wanted to enter or search for the pound key in a string you would use the QTP Chr() function. This function will return the character associated with the code passed to it. For example:
Msgbox Chr(35)
This will return the pound sign.
Common ASCII codes for QTP
Here are some of the most common ASCII codes I often use in QTP:
QTP CODESYMBOLDESCRIPTION
Chr(34)"Double Quotes
Chr(10) Line Feed
Chr(13) Carriage Return
Chr(32) Space
Chart for all the QTP Chr() codes:
QTP CODESYMBOLDESCRIPTION
Chr(0)NULNull char
Chr(1)SOHStart of Heading
Chr(2)STXStart of Text
Chr(3)ETXEnd of Text
Chr(4)EOTEnd of Transmission
Chr(5)ENQEnquiry
Chr(6)ACKAcknowledgment
Chr(7)BELBell
Chr(8)BSBack Space
Chr(9)HTHorizontal Tab
Chr(10)LFLine Feed
Chr(11)VTVertical Tab
Chr(12)FFForm Feed
Chr(13)CRCarriage Return
Chr(14)SOShift Out / X-On
Chr(15)SIShift In / X-Off
Chr(16)DLEData Line Escape
Chr(17)DC1Device Control 1 (oft. XON)
Chr(18)DC2Device Control 2
Chr(19)DC3Device Control 3 (oft. XOFF)
Chr(20)DC4Device Control 4
Chr(21)NAKNegative Acknowledgement
Chr(22)SYNSynchronous Idle
Chr(23)ETBEnd of Transmit Block
Chr(24)CANCancel
Chr(25)EMEnd of Medium
Chr(26)SUBSubstitute
Chr(27)ESCEscape
Chr(28)FSFile Separator
Chr(29)GSGroup Separator
Chr(30)RSRecord Separator
Chr(31)USUnit Separator
Chr(32) Space
Chr(33)!Exclamation mark
Chr(34)"Double quotes (or speech marks)
Chr(35)#Number
Chr(36)$Dollar
Chr(37)%Procenttecken
Chr(38)&Ampersand
Chr(39)'Single quote
Chr(40)(Open parenthesis (or open bracket)
Chr(41))Close parenthesis (or close bracket)
Chr(42)*Asterisk
Chr(43)+Plus
Chr(44),Comma
Chr(45)-Hyphen
Chr(46).Period, dot or full stop
Chr(47)/Slash or divide
Chr(48)0Zero
Chr(49)1One
Chr(50)2Two
Chr(51)3Three
Chr(52)4Four
Chr(53)5Five
Chr(54)6Six
Chr(55)7Seven
Chr(56)8Eight
Chr(57)9Nine
Chr(58):Colon
Chr(59);Semicolon
Chr(60)<Less than (or open angled bracket)
Chr(61)=Equals
Chr(62)>Greater than (or close angled bracket)
Chr(63)?Question mark
Chr(64)@At symbol
Chr(65)AUppercase A
Chr(66)BUppercase B
Chr(67)CUppercase C
Chr(68)DUppercase D
Chr(69)EUppercase E
Chr(70)FUppercase F
Chr(71)GUppercase G
Chr(72)HUppercase H
Chr(73)IUppercase I
Chr(74)JUppercase J
Chr(75)KUppercase K
Chr(76)LUppercase L
Chr(77)MUppercase M
Chr(78)NUppercase N
Chr(79)OUppercase O
Chr(80)PUppercase P
Chr(81)QUppercase Q
Chr(82)RUppercase R
Chr(83)SUppercase S
Chr(84)TUppercase T
Chr(85)UUppercase U
Chr(86)VUppercase V
Chr(87)WUppercase W
Chr(88)XUppercase X
Chr(89)YUppercase Y
Chr(90)ZUppercase Z
Chr(91)[Opening bracket
Chr(92)\Backslash
Chr(93)]Closing bracket
Chr(94)^Caret - circumflex
Chr(95)_Underscore
Chr(96)`Grave accent
Chr(97)aLowercase a
Chr(98)bLowercase b
Chr(99)cLowercase c
Chr(100)dLowercase d
Chr(101)eLowercase e
Chr(102)fLowercase f
Chr(103)gLowercase g
Chr(104)hLowercase h
Chr(105)iLowercase i
Chr(106)jLowercase j
Chr(107)kLowercase k
Chr(108)lLowercase l
Chr(109)mLowercase m
Chr(110)nLowercase n
Chr(111)oLowercase o
Chr(112)pLowercase p
Chr(113)qLowercase q
Chr(114)rLowercase r
Chr(115)sLowercase s
Chr(116)tLowercase t
Chr(117)uLowercase u
Chr(118)vLowercase v
Chr(119)wLowercase w
Chr(120)xLowercase x
Chr(121)yLowercase y
Chr(122)zLowercase z
Chr(123){Opening brace
Chr(124)|Vertical bar
Chr(125)}Closing brace
Chr(126)~Equivalency sign - tilde
Chr(127) Delete

0 comments:

Post a Comment

Loading...