Gene Wirchenko
2010-05-03 17:53:33 UTC
Dear Vixens and Reynards:
Over the weekend, I got bit by a bug having to do with memos.
Is there any way to get the contents of the memo and never mind
the set memowidth value?
The remainder of this post is details of implementation (which
might not be relevant):
My app has client invoicing notes. These are all displayed in
the Invoicing Wizard form. Some are so important that my boss wants
them displayed during the actual invoicing in a messagebox. Such note
lines are prefixed with "#" as in:
This is an ordinary note.
#Really important note
Another ordinary note
#YA important note
When generating the important notes messagebox text, I parse the
memo. If a line is long, it may be broken up by memowidth:
#This is an important note that also is rather[break]
lengthy as well.
"[break]" shows where memowidth might break the line. Since "lengthy
as well." is a line and it is not prefixed with "#", it does not get
added to the messagebox text.
I ended up doing
set memowidth to 8192
(8192 being the maximum), but is there a less kludgy way of handling
this?
Sincerely,
Gene Wirchenko
Over the weekend, I got bit by a bug having to do with memos.
Is there any way to get the contents of the memo and never mind
the set memowidth value?
The remainder of this post is details of implementation (which
might not be relevant):
My app has client invoicing notes. These are all displayed in
the Invoicing Wizard form. Some are so important that my boss wants
them displayed during the actual invoicing in a messagebox. Such note
lines are prefixed with "#" as in:
This is an ordinary note.
#Really important note
Another ordinary note
#YA important note
When generating the important notes messagebox text, I parse the
memo. If a line is long, it may be broken up by memowidth:
#This is an important note that also is rather[break]
lengthy as well.
"[break]" shows where memowidth might break the line. Since "lengthy
as well." is a line and it is not prefixed with "#", it does not get
added to the messagebox text.
I ended up doing
set memowidth to 8192
(8192 being the maximum), but is there a less kludgy way of handling
this?
Sincerely,
Gene Wirchenko