Char function

Hi All,

Is there any function in Ax to retrieve characters only from a string?

Short answer: no.

What about strKeep()?

That’ll work, especially since it’s not case sensitive. I was thinking regular expressions :slight_smile:

Hi Martin,

Using this function, we can only retrieve the only specified string in the input…it wont return all the characters of the string…

So how to return all the characters of the string? Is there function for that?

Thanks and regards,

Kevin

And now we’re back to my first reply: “no”. No ready function exists, you’d have to write (for example) a method in the Global class using regular expression. But as I completely suck with RegEx, I’m no help there :slight_smile:

strKeep() keeps ALL characters defined in the second parameter. Try this, for example:

info(strKeep(“x = (a + b)”, “abcdefghijklmnopqrstuvwxyz”)); //shows “xab”

Yes Martin…:slight_smile:

mrsalonen … Here is the answer…Thanks to Martin