+ 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:
// change a char:
chars[6] = 'z';
// prints "foo baz":
System.debug(String.join(chars, ''));