Is there any function to recognize special character?
Regards,
Fernando Martins
special character
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 142
- Joined: Wed Mar 24, 2004 10:51 am
- Location: Brazil
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What do you mean by "special"? The Alpha and Num functions can isolate whether a string is alphabetic or numeric. The expression (Oconv(string,"MCP") = string) can report whether a character is printable. Some special characters live in particular code point ranges, for example "control set 0" comprises all the characters whose code point is 31 and below.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 142
- Joined: Wed Mar 24, 2004 10:51 am
- Location: Brazil
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
So, effectively, the non-printing characters.
will identify that the character is non-printable. The expression returns 1 (true) if the character is non-printable, 0 (false) otherwise. It returns NULL if ch is NULL.
Code: Select all
(Oconv(ch, "MCP") = ch)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 142
- Joined: Wed Mar 24, 2004 10:51 am
- Location: Brazil