Einzelnen Beitrag anzeigen
Alt 10.10.2012, 10:47   #91
leecher
Moderator
ALPHABET

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

The routine returns true if s contains only alphabetic characters.
This is similar to the function OISALPHA, but for a multiple character string.

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

ALPHABET returns a TRUE if s is a string that consists of characters within the ranges A – Z or a – z.
The routine returns FALSE if s does not satisfy the test condition.

S y n t a x

Code:
value = call ('ALPHABET' , s)
P a r a m e t e r

s - String to test

R e t u r n s

TRUE, if the string consits of alphabetic characters, FALSE otherwise

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

Code:
attach 'STRFUNC'
put call ('ALPHABET' , 'ABCDE') ! returns true, as it's alphabetic
put call ('ALPHABET' , 'ABCD9') ! returns false, as it's not alphabetic
detach 'STRFUNC'
Angehängte Dateien
Dateityp: oac STRFUNC.OAC‎ (15.0 KB, 2x aufgerufen)
Dateityp: zip strfunc.zip‎ (10.1 KB, 2x aufgerufen)
leecher ist offline   Mit Zitat antworten