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
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.
Kyle,
ReplyDeleteThank 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
Another very useful function is DateTimeToLocalizedString().
ReplyDeleteThis can come in really handy when generating timestamps.
This can be used liked shown below:
DateTimeToLocalizedString(%Datetime, "ddMMyy-HHmmss");
Thanks Kyle , Tip was helpfull for me.
ReplyDeleteThanks
Prashant
Very helpful, Kyle. Thanks for posting :)
ReplyDelete