View previous topic :: View next topic
|
Author |
Message |
ayansau
New User
Joined: 22 Jun 2007 Posts: 42 Location: Chennai
|
|
|
|
In panel programming, I have input string with leading spaces.
But while accepting the data, it's STRIPing the leading spaces. Is there any way to retain the leading spaces?? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Pretty sure that you can do it in the panel definitions but I just can't be asked to look for you.
Once the panel has been closed, you could code in the REXX program
Code: |
Variable = Right(Variable,length) |
|
|
Back to top |
|
|
ayansau
New User
Joined: 22 Jun 2007 Posts: 42 Location: Chennai
|
|
|
|
Thanks a lot.. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
You have to add JUST(ASIS) to the attribute used for your input string:
Code: |
)ATTR DEFAULT
~ TYPE(INPUT) INTENS(HIGH) JUST(ASIS)
)BODY
Name: ~Name1 $
)END |
|
|
Back to top |
|
|
|