|
Ron, I don't understand why you are doing the tilde thingy. Please explain. Are you showing only one 30-character entry field and forcing the user to press enter at the end of each line typed? Bleahhh! That doesn't seem very user-friendly. Also, I don't think that the fact that this is a varying length field has any bearing on how you treat it on the display. Other than to inform us that the user can enter an "unlimited" amount of text. What is the maximum amount of text that your users can enter? The answer to that will go a long way in helping you figure out what you need to do. Have you considered using the CNTFLD (Continued-Entry Field) keyword? If, for example, you want to limit your users to keying five 30-character lines, you could use the following spec: A DSTEXT 150 B 17 2CNTFLD(030) WRDWRAP Using this spec, the 150-character field will be broken into 5 lines of 30 characters each. If you "insert" something on the top line, the following lines will move as well. You can also use the WRDWRAP keyword, as shown above, but understand that when a word wraps, you are basically inserting blank characters at the end of the line. Note that the CNTFLD & WRDWRAP keywords require that the display device is attached to a controller that supports an enhanced interface for nonprogrammable work stations, otherwise the keywords will be ignored. This won't work for "unlimited" text entry. In that case, let me know, as I conquered that beast several years ago. ;-) -----Original Message----- From: Klein Ron [mailto:ron.klein@brctsg.com] Sent: Monday, February 07, 2000 9:40 AM To: 'MIDRANGE-L (E-mail) Subject: Text editiing Hi All, We have a program with which we edit a varying length field and when we place this field in the file we add a tilde at the end of each line that is displayed. On the screen we show this field as a 30 character field. When we load this field we add a tilde whenever the user hits enter on the screen or every 30 characters whichever is smaller. So in our file we would have something like this:This is the time for us~to fix this problem the in the r~ight way.~ We need to figure out a way for the text to shift on a blank space and move it to the next line. Does any one have a procedure or maybe a c runtime procedure or advise on how I should go about doing this. TIA Ron +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.