[RPG]text alignment of drop down item
Posted: Thu Aug 07, 2014 1:04 pm
Hi all,
I would like to set dropdown text using 3 data fields, for example UserID + SURNAME + GIVENAME.
These data are retrieved from a file.
However, when showing dropdown items on the screen, these texts are not aligned.
It seems that data are trimmed automatically, and shown as if it is not aligned.
Do you know how to align the text as SURNAME starts from the same position and GIVENAME starts from the same position in the dropdown text?
Or is it not possible to do so?
I tried both
- concatinating like UserID + SURNAME + GIVENAME in RPG, and
- using DS like follows:
D EMP_SELEC DS Qualified
D TEXT 1 70A
D USERID 1 10A
D SURNAME 11 30A
D GIVENAME 31 70A
but didn't get the desired result.
I appreciate your kind advice.
Megumi Sawada
I would like to set dropdown text using 3 data fields, for example UserID + SURNAME + GIVENAME.
These data are retrieved from a file.
However, when showing dropdown items on the screen, these texts are not aligned.
It seems that data are trimmed automatically, and shown as if it is not aligned.
Do you know how to align the text as SURNAME starts from the same position and GIVENAME starts from the same position in the dropdown text?
Or is it not possible to do so?
I tried both
- concatinating like UserID + SURNAME + GIVENAME in RPG, and
- using DS like follows:
D EMP_SELEC DS Qualified
D TEXT 1 70A
D USERID 1 10A
D SURNAME 11 30A
D GIVENAME 31 70A
but didn't get the desired result.
I appreciate your kind advice.
Megumi Sawada