E r g e b n i s / R e s u l t
Gibt die am weitesten rechts stehenden n Buchstaben einer Zeichenkette wieder.
Returns the right-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 right-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 ('RIGHT' , string , length) P a r a m e t e r
string - is any string or constant
length - is an integer, specifying the length of the string returned.
If length is larger than the length of the string then the entire
string is returned. If length 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 ('RIGHT' , 'Test String' , 6) ! prints String
a = 'AA Aerospace'
b = call ('RIGHT' , a , 4) ! b contains 'pace'
detach 'string' Q u e r v e r w e i s / R e f e r e n c e
LEFT
MID
SURNAME