Einzelnen Beitrag anzeigen
Alt 06.06.2007, 09:34   #24
RKabis
Registrierter Benutzer
Beschreibung vorhanden LEFT

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

Liefert die meist ausgelassenen n Charakter aus einem String
Returns the left-most n characters of a string

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

This function returns a string composed of the left-most characters of
a string passed to it. The user tells the function how many characters
to return.

S y n t a x

Code:
answer = call ('LEFT' , string , value)
P a r a m e t e r

string - is any string or constant
value - is an integer, specifying the length of the string returned.
If the value is larger than the length of the string then the entire
string is returned. If the value is less than 0 then a zero length string
is returned.

R e t u r n s

Returns a string variable of the length passed to the function.

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

Code:
attach 'string'
put call ('LEFT' , 'Test String' , 4) ! prints Test
a = 'AA Aerospace'
b = call ('LEFT' , a , 1) ! b contains 'A'
detach 'string'
Q u e r v e r w e i s / R e f e r e n c e

RIGHT
MID
FORENAME
RKabis ist offline   Mit Zitat antworten