Hi, You could use InStr string function to count number of sub-strings within a string.
Do read about "InStr", you should be able to do the code. Regards, Karthik On 10 March 2011 12:41, bnbab <[email protected]> wrote: > Hi > I am new to this group > > I have a question for VB Scripting in QTP > like > > i have a name : "adarshavivahasatram" > I want to get a count of "a " howmany a's are there in the above > name .pls provide me howmany wayswe can get the count of a and let me > know the code > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
