Parse RTF or Text Control into several lines including spaces


Author
Message
Michael Reese
Michael Reese
Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)Advanced StrataFrame User (533 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
I'm need to parse a text control or Rtf control into several lines. I plan populate an OBX segment for transcriptions. I have the code for building the actual HL7 message. Just need some help on the parsing logic.



Thanks



Michael
Reply
Charles R Hankey
Charles R Hankey
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Forum Members
Posts: 524, Visits: 30K
Not sure what you mean by "the lines and breaks and spaces between the lines."



The same you posted is hard to decipher because it wraps and we don't know where the lines break. What is the breaking char? Chr(10) chr(13) or a combination? Are there blank lines? What determines where a line begins and ends?



If you can give some very specific answers about the structure parsing it will be pretty easy.



( see my previous question - in the example you posted, how many lines would that break into? )

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search