Right Click Disabled

Wednesday, February 22, 2012

VBScript code in QTP to display number of words in given sentence


Option explicit
Dim sentence, nw
sentence=inputbox("Enter any sentence : ")
nw=split(sentence," ")
msgbox("Number of words in given sentence is : "&ubound(nw)+1)

No comments:

Post a Comment

Twitter Bird Gadget