Raised This Month: $ Target: $400
 0% 

what does replace() funtion returns


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kaboomkazoom
Junior Member
Join Date: Dec 2004
Old 02-17-2005 , 17:15   what does replace() funtion returns
Reply With Quote #1

someone please tell me what does the replace function returns.

also please tell me how can i replace multiple occurances of any sub-string in any give string ( i dont know the no. of occurances of the sub-string beforehand ) because replace() replaces only 1st occurance.
kaboomkazoom is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-17-2005 , 18:06  
Reply With Quote #2

replace() always returns 0. And are you sure that it will replace only the first occurance? Perhaps you could do this:

Code:
while(containi(stringval,"value") != -1) {   stringval = replace(stringval,"value","otherstuff"); }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
kaboomkazoom
Junior Member
Join Date: Dec 2004
Old 02-17-2005 , 18:09   thanks
Reply With Quote #3

ya this will surely work.

thanks
kaboomkazoom is offline
Reply



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 Off

Forum Jump


All times are GMT -4. The time now is 19:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode