× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'll have to give that a try.  I tried DSPPFM but it didn't show on the 
screen.

Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
709-576-8132
rpower@xxxxxxxxxx
http://www.stjohns.ca/
___________________________________________________________________________
Success is going from failure to failure without a loss of enthusiasm. - 
Sir Winston Churchill




AGlauser@xxxxxxxxxxxx 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
2006/09/21 03:06 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: Conversion program






Hi Ron,

Do you have a way to write to the new file from a Java textarea?  If so, I 

*think* that it would work to do this:

1.  Update the new file from a text area - make sure to include a newline. 

 (ie. enter 'a<enter>b' or somesuch).
2.  Write a quick test RPG to read the new field into a variable.
3.  Debug said RPG program, view the field as hex, see how the newline is 
represented, and copy that hex code.

I think this is what I would attempt in your situation, because I don't 
know if there is any ASCII <-> EBCDIC going on under the covers in such a 
scenario.

FWIW, I found this document on Sun's site 
http://java.sun.com/docs/books/tutorial/uiswing/components/textarea.html, 
which links to some details about the class which handles editing for 
text-entry widgets.  It appears that when this class is reading a String 
into a Textarea, it assumes that the first CR, LF, or CRLF is the line-end 

character.  So, it would seem that you could use the hex code for any of 
those as the line-end would happen automagically.  I don't have any way of 

testing this, but if that is indeed true I think it's pretty darn cool.

HTH,
Adam

#####################################################################################
Attention:
The above message and/or attachment(s) is private and confidential and is 
intended 
only for the people for which it is addressed. If you are not named in the 
address 
fields, ignore the contents and delete all the material. Thank you. Have a 
nice day.

For more information on email virus scanning, security and content
management, please contact administrator@xxxxxxxxxxxx
#####################################################################################

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.