Can I use a range of characters in the charsIn function? - Forum - Corticon - Progress Community

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

 Forum

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

This question is not answered

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?

 

 

All Replies
  • 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