Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on How to Split string in silktest within the SilkTest forums, part of the Software Testing category; Can anyone help me how to split a string in silktest as we do in winrunner/qtp. Thanks & Regards, AK...
|
|||||||
|
|||
|
Re: How to Split string in silktest
Hi all,
I found a way to do so, if anyone interested can have a look at below example: // function to split string from the delimeter passed [-] list of string splitstring (string slist, string sdelim) [ ] integer ii = 1 [ ] list of string lswords [ ] [-] while (getfield(slist, sdelim, ii) != "") [ ] listappend(lswords, getfield(slist, sdelim, ii)) [ ] ii++ [ ] [ ] return lswords //function call [-]main () [ ] list of string lsreturn [ ] lsreturn = splitstring ("abc;def;ghi", ";") [ ] listprint (lsreturn) //this will return the following: [ ] abc [ ] def [ ] ghi Best Regards, -AK Last edited by a_katiyar; 08-19-2009 at 01:00 AM. Reason: Layout was changed |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AJAX Made Easy - Configuring the Split Functions with Slice or String | Lokesh M | AJAX & XML | 0 | 06-01-2008 12:20 PM |
| Difference between String.Convert Vs String.ToString | jbanx | C# | 6 | 03-24-2008 01:02 PM |
| SPLIT command | JobHelper | Unix/Linux | 1 | 06-26-2007 05:49 PM |
| Can i use substring function to split the second column | Geek_Guest | Data Warehousing | 0 | 04-10-2007 02:06 PM |
| Difference between split and csplit | sripri | Unix/Linux | 2 | 07-26-2006 05:02 PM |