hcl-bot
November 14, 2007, 10:40am
1
Hello all !!
Before nothing, sorry for my bad english…I am writing for Argentina…
I need to delete part of a string variable…for example…
I want cut “10 dir 123.445.666.777 bytes” to “123.445.666.777”…
Because the idea is convert this new part of the string variable in an Integer to can manipulate this number…
Please, if something know one function, or something have an idea…answer me…
Note: I am working with LS code.
Thanks a lot for him/her!!!
Regards.
hcl-bot
November 14, 2007, 12:06pm
2
Subject: “Cut” String variable
Try “split()” to break the string apart at the “space”.
strArray = split(“10 dir 123.445.666.777 bytes”, " ")
the third element will be “123.445.666.777” so you can then convert that to a number (long?)
hcl-bot
November 16, 2007, 7:17am
3
Subject: RE: “Cut” String variable
Chuck, I will try with “split()” function…
Regrards…
Thanks a lot for your help!!
hcl-bot
November 14, 2007, 12:27pm
4
Subject: RE: “Cut” String variable
What you have given is an example, not a specification. I don’t know by what rule you can determine the location of the part you are interested in. However, I draw your attention to these functions which will probably be useful to you: Strleft, Strright, Strleftback, Strrightback, Split, Join, Mid$.