Friday, September 9, 2011

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.

4 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