function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rachit Kumar JainRachit Kumar Jain 

Is there a function to read numeric data in a text field?

Is there a way?? formula  field- function or a apex code that convert string to a character array?? I want to select numeric data in Company Plans text field.
Ramesh KallooriRamesh Kalloori
go through the below code.

{
 // splitting on empty gives you an array of the string's "chars":
String source = 'foo bar';
String[] chars = source.split('');
// the 1st element in an Apex '' split is garbage; remove it:
chars.remove(0);
System.debug(chars);
// change a char:
chars[6] = 'z';
// prints "foo baz":
System.debug(String.join(chars, ''));
   }

thanks,
RAmesh