Geeks Talk

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.

How to Split string in silktest

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...

Go Back   Geeks Talk > Software Testing > SilkTest
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 06-25-2009
Junior Member
 
Join Date: Aug 2008
Location: Bangalore
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
a_katiyar is on a distinguished road
How to Split string in silktest

Can anyone help me how to split a string in silktest as we do in winrunner/qtp.

Thanks & Regards,
AK
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-19-2009
Junior Member
 
Join Date: Aug 2008
Location: Bangalore
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
a_katiyar is on a distinguished road
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
Reply With Quote
Reply

  Geeks Talk > Software Testing > SilkTest

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 03:30 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved