Code center > Darwinbots Program Source Code

Sentence Split

(1/27) > >>

Zelos:
I hope its ok to ask about VB that doesnt have to do with DB here.

Anyhow im wondering how its done to split a sentence. Like if I have Sentence "ABC" I should be able to split it up to 2 sentences that is like "A" and "AB"
how do I do?

Numsgil:
Na, it's fine.

The character "_" spits a VB line across multiple lines.

For instance:

form1.caption = "Hello my name is!  Hello my name is!  Hello my name is" + _
                        "The Real Slim Shady."

Zelos:
no I mean, if I have a sentence like "Hi, my name is zelos" I want to have somekinda command that can store in a memory the letters between X and Y position, so between 5 and 8 in that sentence would be "my n", I want something like that

Numsgil:
You want the mid, left, and right functions.

I think the syntax is:

left (string, length) = exerpt of the first length characters at the left of string.

Likewise with the others.  Lookup mid's syntax, it's a bit different.

Zelos:
thx num, that were exacly what I needed. Nums, how do you make a graph like uve done in DB?

Navigation

[0] Message Index

[#] Next page

Go to full version