By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,591 Members | 629 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,591 IT Pros & Developers. It's quick & easy.

Paragraph splitting

P: 23
I need to convert paragraphs of random 16 bit lines.
they will be formated with a single blank line in between (between each paragraph. Each line will continue to the next line.)
How can I get all of the paragraphs, without knowing how many paragraphs there will be before hand

(VB6)
Sep 19 '07 #1
Share this Question
Share on Google+
4 Replies


kadghar
Expert 100+
P: 1,295
I need to convert paragraphs of random 16 bit lines.
they will be formated with a single blank line in between (between each paragraph. Each line will continue to the next line.)
How can I get all of the paragraphs, without knowing how many paragraphs there will be before hand

(VB6)
you can try each paragraph as a string, create an array of strings
and redim it each time you have a new one

Expand|Select|Wrap|Line Numbers
  1. dim Arr() as string
  2. for i = 1 to NumOfParagraphs
  3.     redim preserve arr(i)
  4. next
to create a single string with all this paragraphs separated by lines use the JOIN function with Chr(13) as delimiter.

HTH
Sep 19 '07 #2

Expert 5K+
P: 8,434
Can you give us a better idea of the circumstances? Where are these lines stored, what are you doing with them, etc? Are we talking about "normal" text here, or what? You referred to it as "16 bit lines".
Sep 20 '07 #3

P: 23
it will look like this...

Shoot through everything
D070aa5c 0000FFBE
205758e0 30630002

Shoot through everything off
D070aa5c 0000F3FF
205758e0 30630001

Rapid On
D070aa5c 0000FFEE
2057f3ec 1000000b

Rapid All OFF
D070aa5c 0000F3FF
2057f3ec 00000000

No Recoil Scope In 1st Person On
D070aa5c 0000FFEE
203c0414 00000000
203c0418 00000000

No Recoil Scope In First Person OFF
D070aa5c 0000F3FF
203c0414 0c125d80
203c0418 46000b42

coming through text box.. i intend to convert each paragraph into a string and attempt to put it into a list box with the title name at the top and the rest of the paragraph below..
which i guess is 2 sets of 16 bit.. but you could say 32 bit if you like..
Sep 20 '07 #4

Expert 5K+
P: 8,434
Just a note to let you know, I won't have a chance to look at this until (hopefully) some time over the weekend.
Sep 21 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.