473,473 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Paragraph splitting

23 New Member
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
4 1666
kadghar
1,295 Recognized Expert Top Contributor
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
Killer42
8,435 Recognized Expert Expert
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
cryoburned
23 New Member
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
Killer42
8,435 Recognized Expert Expert
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

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

Similar topics

3
by: EmmettPower | last post by:
Hi, I am building a small CMS for my son's school. Ideally I want to build the system for them and hand it over so that all updates can be done through web-based forms. So far so good....
3
by: Rakesh | last post by:
Hi, I was 'googling' to look out for some ways of optimizing the code and came across this term - 'hot / cold splitting'. In short, the discussion is about splitting heavily accessed ( hot )...
1
by: Jean-François Michaud | last post by:
Hello people, I was wondering how it I could implement keep with next logic on lines of text contained within a paragraph. I need to have at least 10 lines of text within a paragraph to be...
1
by: abhas59 | last post by:
hi friends, I want to serialize a System.Windows.Documents.Paragraph and for this I have written the following code in the application : mypara cust = new mypara(); Paragraph ph...
15
by: Yogi | last post by:
Hi there, I have a quick question. In my html document, I want to make a new paragraph whenever I have a blank line in the html source. Using <p> and </pevery time is kind of cumbersome (I want...
2
by: shadow_ | last post by:
Hi i m new at C and trying to write a parser and a string class. Basicly program will read data from file and splits it into lines then lines to words. i used strtok function for splitting data to...
14
by: wshaer | last post by:
Hi all, I have an assignment and I need some help with it. This is the assignment // Research reports are often required to conform to a given standard such as APA or MLA. These standards...
3
by: gentsquash | last post by:
I'm trying to display a paragraph that has a centered phrase, such as this one, in the middle of the paragraph. An example is the section "End of semester project" on my course-page ...
6
by: Haines Brown | last post by:
I'm trying to resolve a contradictory situation in which I have rows going down a page, and each consists of two elements: to the left is a thumbnail image that is a hot link; to its right is a...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.