String Manipulation in PeopleCode

Here are a few examples of string manipulation in PeopleCode. I will try to update this post with more examples if I think of more situations.

Number to String
This will convert a number variable to a string. This may be helpful with specific formatting or string concatenation.  For more details check out this entry in PeopleBooks.
Substring
This will take a substring of a larger string.

Comments

  1. Kyle,

    Thank you.

    I found this page to be VERY helpful and get me past the substring issue I was having.

    How nice of you to share your knowledge.

    yvonne

    ReplyDelete
  2. Another very useful function is DateTimeToLocalizedString().
    This can come in really handy when generating timestamps.

    This can be used liked shown below:
    DateTimeToLocalizedString(%Datetime, "ddMMyy-HHmmss");

    ReplyDelete
  3. Thanks Kyle , Tip was helpfull for me.

    Thanks
    Prashant

    ReplyDelete
  4. Very helpful, Kyle. Thanks for posting :)

    ReplyDelete

Post a Comment

Popular posts from this blog

PeopleSoft Expense Report : Status stuck in "Submission in Progress"

"You are not authorized for this page" error on Worklist link