Difference between revisions of "HTML ENTITIES()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
Line 1: Line 1:
 
{{YLM to do}}
 
{{YLM to do}}
 
 
  
 
==Purpose==
 
==Purpose==
 
+
Function to return a string from a character string or memo field where qualifying characters have been replaced with their html entity equivalents
  
  
 
==Syntax==
 
==Syntax==
 
+
HTML_ENTITIES(<expC> | <memofield>)
  
  
 
==See Also==
 
==See Also==
 
+
[[AT()]], [[ATNEXT()]], [[CHRTRAN()]], [[HTML_ENTITY_DECODE()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[STR()]], [[STR_REPLACE()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
  
  
 
==Description==
 
==Description==
 
+
The STRTRAN() function will search <expC1> or <memofield> and replace text within <expC1> or <memofield> with <expC3> wherever the occurrence of <expC2> is found.  The optional <expN1> specifies the start position for the search in <expC1>.  If this is not specified then the default is 1.  The optional <expN2> specifies the number of occurrences of <expC2> to replace with <expC3>.  If this is not specified, then all occurrences starting from <expN1> are replaced.  This function can be used to remove blank spaces in character strings.  The STRTRAN() function returns a character expression that contains the result of the string translation.
  
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
+
? strtran("Hello World", "ello", "i")
 +
Hi World
 
</code>
 
</code>
  
==Products==
 
  
 +
==Products==
 +
Recital Server, Recital
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:String Data]]
 +
[[Category:String Data Functions]]

Revision as of 15:10, 16 February 2010

Template:YLM to do

Purpose

Function to return a string from a character string or memo field where qualifying characters have been replaced with their html entity equivalents


Syntax

HTML_ENTITIES(<expC> | <memofield>)


See Also

AT(), ATNEXT(), CHRTRAN(), HTML_ENTITY_DECODE(), INLIST(), LEFT(), OCCURS(), RAT(), RIGHT(), STR(), STR_REPLACE(), STREXTRACT(), STRTRAN(), STUFF(), SUBSTR()


Description

The STRTRAN() function will search <expC1> or <memofield> and replace text within <expC1> or <memofield> with <expC3> wherever the occurrence of <expC2> is found. The optional <expN1> specifies the start position for the search in <expC1>. If this is not specified then the default is 1. The optional <expN2> specifies the number of occurrences of <expC2> to replace with <expC3>. If this is not specified, then all occurrences starting from <expN1> are replaced. This function can be used to remove blank spaces in character strings. The STRTRAN() function returns a character expression that contains the result of the string translation.


Example

? strtran("Hello World", "ello", "i")
Hi World


Products

Recital Server, Recital