Page 1 of 1
special character
Posted: Thu Nov 16, 2006 3:08 pm
by fmartinsferreira
Is there any function to recognize special character?
Regards,
Fernando Martins
Posted: Thu Nov 16, 2006 3:42 pm
by ray.wurlod
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.
Posted: Thu Nov 16, 2006 7:47 pm
by fmartinsferreira
I mean by "special" = a character that isn't on the keyboard. :D
Regards,
Fernando Martins
Posted: Thu Nov 16, 2006 9:31 pm
by ray.wurlod
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.
Posted: Tue Nov 21, 2006 4:41 am
by fmartinsferreira
Thanks!