"Cut" String variable

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.

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?)

Subject: RE: “Cut” String variable

Chuck, I will try with “split()” function…

Regrards…

Thanks a lot for your help!!

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