Search This Blog

Thursday, July 29, 2010

Sentence to Words

This is how you can convert a sentence to word. This is helpful when u get the object property as a string and then need to separate it into words for further processing. This is also very helpful in the Data Driven framework, where the criterion for running the tst suites may be provided in strings.

Str = Window(" ").Object(" ").GetVisibleText
Var = Split(Str, "delimiter") ' The delimiter can be a space or comma or $ symbol etc
Len_Array = UBound (Var)
For i = 0 To Len_Array
Str_1 = Var(i)
Msgbox Str_1
Next

No comments:

Post a Comment