manne 0 Posted March 28, 2010 Report Share Posted March 28, 2010 Hello,I tried very simple samples like the attached file hundred different ways. I think i forgot one importand thing! But what.Thanks for help.regards m. Quote Link to post Share on other sites
alcr 135 Posted March 28, 2010 Report Share Posted March 28, 2010 I'm not 100% on what you're trying to do, an explanation would help. and what are you trying to do with run sub command? You either run the sub or not, subparameters in it is just freaky Quote Link to post Share on other sites
manne 0 Posted March 28, 2010 Author Report Share Posted March 28, 2010 I only want to change the string like in the new attachment eat3fishto eatmorefish please help, thanks m. Quote Link to post Share on other sites
Aaron Nimocks 19 Posted March 28, 2010 Report Share Posted March 28, 2010 Just use the replace function instead of doing it the way you are trying. Quote Link to post Share on other sites
manne 0 Posted March 28, 2010 Author Report Share Posted March 28, 2010 I want to use the substring function and learn to use.i only used this example. Sorry for making confusion.I have a string with ZIP Code and Town Name: #string = "USA-24587 Funnytown"want to separate ZIP Code and Town Name with substr.result should be #zip = 24587#town = "Funnytown" Thanks for your servicebest regards m. Quote Link to post Share on other sites
tooltrainer 12 Posted October 6, 2010 Report Share Posted October 6, 2010 I needed to do a substring function as well, and here is how I solved it with javascript: I needed to get just the numeric portion of a string like "1.50 x", so I need to remove the last 2 characters in the string. Set $eval var ask = '1.15 N'; var output = ask.substring(0,ask.length-2); output; of course I used a {1} variable in the definition of 'ask'. Hope this helps someone! Jonathan 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.