mblunk 0 Posted October 13, 2007 (edited) Ok, I found a way to store data in my newegg computer builder, however I need a way to find how many times a substring is found is string in order to find out how many items are in each group. I tried making my own function for it, but it doesn't seem to work (always returns 1)http://pastebin.org/4770 Edited October 13, 2007 by mblunk Share this post Link to post Share on other sites
Valuater 130 Posted October 13, 2007 $text = StringReplace("this is a line of text", " ", "-") $numreplacements = @extended MsgBox(0, "New string is", $text) MsgBox(0, "The number of replacements done was", $numreplacements) @Extended is your answer, you do not need to "change or replace" the actual info 8) Share this post Link to post Share on other sites
mblunk 0 Posted October 13, 2007 $text = StringReplace("this is a line of text", " ", "-") $numreplacements = @extended MsgBox(0, "New string is", $text) MsgBox(0, "The number of replacements done was", $numreplacements) @Extended is your answer, you do not need to "change or replace" the actual info 8)Oh, thanks. I thought there was probably something already built-in, and I thought I remembered seeing it before, but I couldn't find it after a few minutes of searching in the help so I posted here. Thanks again. Share this post Link to post Share on other sites