showing field longer than 80 characters on the screen
Kenneth Brody
kenbrody at spamcop.net
Tue Oct 14 16:10:10 PDT 2014
On 10/14/2014 4:08 PM, James Flanagan wrote:
> Filepro 5.7.04 FREEBSD 9.2
>
> I assume that I already know the answer to this one, but I figured that I
> should ask before I continue programming.
>
> lets say i have a customer notes field that is 300 characters in length,
> and when displayed on a screen, i DO NOT want it to run the full 80
> characters wide on the screen, and yet, i want the user to be able to
> read all 300 characters easily, and even perhaps edit and add to what is
> there. I am assuming that I need to break it up using the MID command
> into smaller chunks of text and then assign each of those chunks to a
> screen variable. however, if i divide it up into 6 rows of 50
> characters, i am sure that words will be broken apart between lines, etc,
> and if you were to input some additional words on a middle line, the text
> would not simply flow from line to line like on a word processor.
>
> Is there a more elegant solution to this?
>
> I searched through the manual but cannot find anything that refers to
> what I am looking for (assuming that in my search i was referring to it
> properly). Thank you very much in advance.
You can use your "split the field into chunks" using WORDWRAP(). Then, it
won't break at the "wrong" place. (However, given the right circumstances,
it might also not fit into the number of lines you are reserving for it.)
Or...
Declare a temporary (16,memo) field, and store the notes into it. Then, you
can use MEMO SHOW to display it. And, you can even use MEMO EDIT to edit
it, and then store back into the (300,*) field.
--
Kenneth Brody
More information about the Filepro-list
mailing list