Solved
Forum Discussion
3 Replies
Sort By
- baxatobCommunity Hero
You can get a full string and then get a slice (first 4 characters) from it.
fullString = 'John, Doe' In JScript, JаvаScript: subString = fullString.slice(0,4)
In Python:
subString = fullString[0:4]
Output: subString == "John"
etc...- shankar_rCommunity Hero
In common, you can always aqString.SubString as this is TestComplete in-build function.
- jg0888Contributor
Awesome! I knew there had to be a good way to do this. As a non-developer using TestComplete, it is so cool to see that SmartBear has already configured these things into the KeywordTest Operations and Object Methods.
I called the Object Method of aqString and Operation SubString to accomplish the task I needed within my KeywordTest.
Thanks!
Related Content
Recent Discussions
- 8 hours agojstaehlin
- 2 days agoAivanitskiy