Newbie: substrings

S

steve

Hi,

I want to extract in separate strings the substrings separated by spaces in
lines like:

A B D between 21.2 32.4
S B V > 332.3
..... etc

where each line is a string.
Since the various substrings are not of constant length, the substring
function is not too useful for me.
I think i can do it with left- right-substrings, but is there a method that
will extract a string between delimiters? (spaces in my case)

TIA
 
C

Crouchie1998

Why do you want to extract the letters using substrings when you can use
'Split'?

Crouchie1998
BA (HONS) MCP MCSE
 
H

Herfried K. Wagner [MVP]

steve said:
I want to extract in separate strings the substrings separated by spaces
in lines like:

A B D between 21.2 32.4
S B V > 332.3

'String.Split'/'String.Split'/'Regex.Split'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top