Highlighted
Absent Member.
Absent Member.
243 views

Truncate an array of characters

Hi,

I want to truncate an array of characters for a field without having to convert it to a string and using the substring function.The main purpose is to limit the no. of characters of the array say 100 characters so that when I push data to another third party tool,it allows me to send only 100 characters of the array.

 

 

0 Likes
1 Reply
Highlighted
Senior Member..
Senior Member..

Re: Truncate an array of characters

Hello MelWar,

can you comment a little bit more on the context of your question? For instance, is this a one-time job or do you want to do this regularly? Are you asking for a piece of code in JavaScript or RAD? And when you say "to limit the no. of characters of the array" -- is this about truncating the array of characters _as_a_whole_ or do you want to truncate each element individually (so that each element is truncated to 100 characters)? ...

 

Best regards

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.