Can I use a range of characters in the charsIn function?

Posted by meijsberg on 24-Dec-2018 15:22

Hi,

I would like to check a string for allowed characters used. According to te manual I can use the function charsIn for that.

During testing I discovered that charsIn('A') works fine, but charsIn('A'..'Z') does not. When I use a range Corticon gives me a null pointer exception.

 

Am I using this function properly?

 

 

Posted by Thierry Ciot on 26-Dec-2018 15:19

It does not appear this operator supports a range.  It only supports a string containing the set of all valid characters.

In your case, it would be 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

Thierry

All Replies

Posted by Thierry Ciot on 26-Dec-2018 15:19

It does not appear this operator supports a range.  It only supports a string containing the set of all valid characters.

In your case, it would be 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

Thierry

This thread is closed