Einzelnen Beitrag anzeigen
Alt 09.10.2012, 20:56   #56
leecher
Moderator
OISALNUM

E r g e b n i s / R e s u l t

The routine returns true if c is a particular representation of an alphanumeric character.

B e s c h r e i b u n g / D e s c r i p t i o n

OISALNUM returns a TRUE if either OISALPHA or OISDIGIT is true for c, that is, if c is within the ranges A – Z, a – z, or 0 – 9.
The routine returns FALSE if c does not satisfy the test condition.

S y n t a x

Code:
value = call ('OISALNUM' , c)
P a r a m e t e r

c - Character to test

R e t u r n s

TRUE, if the character is an alphanumeric character, FALSE otherwise

B e i s p i e l / E x a m p l e

Code:
attach 'CTYPE'
put call ('OISALNUM' , 'A') ! returns true, as it's an alphanumeric character
put call ('OISALNUM' , '?') ! returns false, as it's not an alphanumeric character
detach 'CTYPE'
leecher ist offline   Mit Zitat antworten