Difference between revisions of "Data 1 0-trimStringByWordCount"

From ADF Docs
Jump to: navigation, search
Line 1: Line 1:
 +
__NOTOC__
 +
Attention: Do not change any text in the description, signature, and paramter sections.
 +
 +
Return to [[Data_1_0]]
 +
 
== Description ==  
 
== Description ==  
 
Shortens a string without cutting words in half and appends '...' to the end.
 
Shortens a string without cutting words in half and appends '...' to the end.

Revision as of 12:46, 9 April 2010

Attention: Do not change any text in the description, signature, and paramter sections.

Return to Data_1_0

Description

Shortens a string without cutting words in half and appends '...' to the end.

Signature

public String trimStringByWordCount ( string str, numeric words, boolean useEllipsis )

Parameters

Required Name Type Description
required str string The string to modify
  words numeric The number of words to display
optional optional useEllipsis boolean [Default: true] Option to turn off the Ellipsis [...] at the end of the trimed string