Alan,

Not sure I understand the question.

Seems like the answer is a simple if statement:
if %subst(dspFld:%size(dspfld):1) = *BLANKS;

But I'm guessing that may not be what you are after.

If sounds like you may be wanting something to occur while the user is
typing.  That would be almost impossible as the 5250 data stream is
block oriented.  Until the user presses enter or a CA/CF key, the
iSeries doesn't see anything.  Stream oriented terminals on the other
hand send every key press to the server.

Consider moving your app to the web and using AJAX, it would be well
suited to processing while the user is typing.  (This is the way google
works)

HTH,


Charles Wilt
--
iSeries Systems Administrator / Developer
Mitsubishi Electric Automotive America
ph: 513-573-4343
fax: 513-398-1121
  

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx 
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Friday, September 01, 2006 12:51 PM
To: Midrange Systems Technical Discussion
Subject: Field filled in


Hi everyone.
I have another question for anybody.
Within DDS, is there a way to tell if the last character of a 
field is NOT
blank.
Let me try to further explain with a simple example.
Lets say a 25 character field, DSPFIELD, contains the value


JUST AN EXAMPLE
which is 15 characters long.
The user then proceeds to fill in the rest of the screen, and 
later returns
to the field DSPFIELD and INSERTS data in the middle of the 
text to change
it to

JUST YET ANOTHER SMALL EXAMPLE

This now fills in (and more) the 25 character field. 
Obviously, in real
life, the insert would have stopped when the second E in 
EXAMPLE filled in
the 25th character. Apart from the user NOT being able to 
insert ALL the
text, is there a way for the program to realize that the last 
character is
NOT blank.
P.S. don't forget, in my example, the cursor would NOT be in the 25th
character.

Any help/suggestions greatly appreciated.

Thanks in advance



Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
-- 
This is the Midrange Systems Technical Discussion 
(MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.