Here is the list of all string functions in QTP.
String functions to extract the part of the string -
String functions to remove the spaces from the string -
If I have missed any string manipulation function, you can add it using comment.
Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.
String functions to extract the part of the string -
- left - gets the specified number of characters from the left side of string
- mid -gets the specified number of characters from the given position of the string
- right - gets the specified number of characters from the right side of string
String functions to remove the spaces from the string -
- ltrim - removes the blank spaces from the left side of the string
- rtrim - removes the blank spaces from the right side of the string
- trim - removes the blank spaces from the left and right side of the string
Other String functions -
String - Returns a string of the given length with specified character.
Space - Returns the empty string with given length
strReverse - Reverses the given string
ucase - Converst the string to upper case
lcase - Converts the string to lower case
strComp - Compares 2 strings
replace - replaces the given string str1 from input string say str with other string say str2
len - gets the number of characters in given string
split - splits the string into array using given delimiter
join - forms the string from given array elements
cstr - converts the data type of the variable into String
chr - gets the character corresponding to the given ascii value
Asc - gets the ascii value of the given character.
instr - searches for a substring in a given string and returns the position where the match is found.
InStrRev- searches for a substring in a given string and returns the position where the match is found from the end of the string.
More interview questions and answers on strings in QTP
More interview questions and answers on strings in QTP
- What are the different string functions in QTP?
- How to extract the digits from given string in QTP?
- How to sort the array of strings in qtp
- How to get the first character in string in QTP?
- How to convert the string into upper case in QTP?
- How to get the last character from the string in QTP?
- How to replace the string in qtp?
- How to check if substring exists in QTP?
- Explain right, mid and left functions in qtp?
- How to remove the spaces from string in qtp?
- What are the trim functions in qtp?
- Explain replace function in qtp with example.
- Explain the split function in qtp with example.
- Explain lcase and ucase functions in qtp.
- What is the len function in qtp?
- Give the example of instr function in qtp
If I have missed any string manipulation function, you can add it using comment.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs