Hi All,
Can any one clarify on the below issue
For ex:
Let $str='123wwee'
Let $str1=lpad($str1,4,'0')
show 'String=' $str1
When i execute the above code it is displaying the string value '123wee' with out any changes
but as per the above code it should pad the 0's up to 4 and Final string it should display like
0000123wwee
But it is not working as desired
Can any one clarify on this.
Thanks in advance
sameera
Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
This is happening because the second argument of lpad or rpad specifies length of final string. Here second argument is 4 which is less than the length of $str1. if you want the output as '0000123wwee' than please specify the second argument as 11