View previous topic :: View next topic
|
Author |
Message |
sourabh jain
New User
Joined: 29 Feb 2008 Posts: 27 Location: Pune
|
|
|
|
Hi All,
I am writing an ISPF Panel, in which there is an input fileld called SINPUT.
The attributes of which are:
Code: |
$ TYPE(INPUT) INTENS(LOW) HILITE(USCORE)
|
This is a 40 byte field. While giving input to the ISPF screen, after 40 bytes are completed, it goes to the next input string and starts writing there. Please help how can i stop the curson from going to the next input string and freeze the cursor at the end of 40 bytes. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
When you started creating your panel, and copied in one of the panel models, did you get the following lines for ATTR:
Code: |
)ATTR DEFAULT(%+_)
/* % TYPE(TEXT) INTENS(HIGH) defaults displayed for */
/* + TYPE(TEXT) INTENS(LOW) information only */
/* _ TYPE(INPUT) INTENS(HIGH) CAPS(ON) JUST(LEFT) */
|
Notice in the model example how all of the input fields end with the plus sign (+):
Code: |
)ATTR DEFAULT(%+_)
/* % TYPE(TEXT) INTENS(HIGH) defaults displayed for */
/* + TYPE(TEXT) INTENS(LOW) information only */
/* _ TYPE(INPUT) INTENS(HIGH) CAPS(ON) JUST(LEFT) */
$ TYPE(INPUT) INTENS(LOW) PAD(_) /* input field padded with '_' */
! TYPE(INPUT) INTENS(LOW) PAD(' ') /* input field padded with ' ' */
)BODY
%-------------------- TITLE FOR ENTRY PANEL ----------------------------------
%COMMAND ===>_ZCMD +
%
+ THIS DIRECTION LINE TELLS THE USER HOW TO USE THE PANEL:
+
+ FIRST PHRASE ......$V1 + Description for phrase 1
+ SECOND PHRASE ......$V2 + Description for phrase 2
+ THIRD PHRASE .......$V3 + Description for phrase 3
...
+ LONG ENTRY FIELD ..!VX
+
...
|
That plus (+) value indicates where the field ends. |
|
Back to top |
|
|
sourabh jain
New User
Joined: 29 Feb 2008 Posts: 27 Location: Pune
|
|
|
|
Thanks a lot Kevin for the reply.
DEFAULT(%+_) was not present in the ATTR section.
Everything is working fine now. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Alternatively, you may specify SKIP(OFF).
O. |
|
Back to top |
|
|
|