firstword(
TEXT
)

The firstword( function extracts the first word from the text.


Parameters

This function has one parameter:

text – original text.


Description

Extracts the first word from the text.

firstword("now is the time") ☞ now
firstword("Mary Wilson") ☞ Mary
firstword("Wilson, Mary") ☞ Wilson,

If you want only alphabetic characters, use the striptoalpha( function.

striptoalpha(firstword("Wilson, Mary")) ☞ Wilson

Note: This function is equivalent to:

array(text,1," ")

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.