All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
Brian:
You are right about @Memory.read.line retaining the carriage return
characters. I haven't tested this macro but I think that it might strip
control chars other than carriage return. Another macro that you could
use, if it did and you needed them, is @Memory.read.chars, same args as
@Memory.read.line. I have successfully used this to read in a byte stream.
Les
________________________________________________
Leslie Mann
Clinical Application Specialist
Timmins and District Hospital
Voice: 705-267-2131 x2147
Fax: 705-267-6321
[EMAIL PROTECTED]
_________________________________________________
Hi Leslie,
That is a great point. I have not run into any files yet with lines
over 255 characters, so I do not have an answer for you in regards to
that. If you do encounter that situation, I would love to hear the
results.
I think you can use the NPR Macro @Memory.read.line in place of
@Memory.read.text. It requires two arguments: the Memory Buffer
Handle, and the Maximum Length of characters to read. In this case,
you would run it like this:
@Memory.read.line(MEM,255)^TEXT
@Memory.read.text removes the control characters, such as carraige
returns and line feeds, but I don't think @Memory.read.line does
that, so you would need to use the TEXT:0X syntax when assigning this
variable to the /TEXT array.
Thanks,
Brian Schmit
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l