func X3.EN_TEXT_COUNT_OCCURRENCES(Clbfile TEXT_TO_BROWSE_IN, Char VALUE_TO_SEARCH_IN, Tinyint CASE_SENSITIVE_IN) : Integer
func X3.FR_TEXTE_COMPTER_OCCURRENCES(Clbfile TEXTE_A_PARCOURIR_IN, Char VALEUR_A_CHERCHER_IN, Tinyint SENSIBLE_CASSE_IN) : Integer

Count the number of occurrences of a piece of text within a text

  • TEXT_TO_BROWSE_IN Clbfile Text in which to search
  • VALUE_TO_SEARCH_IN Char Piece of text to search and count
  • CASE_SENSITIVE_IN Tinyint Whether or not case is taken into account (0=No, 1=Yes)
Return Integer Number of indices copied
Example

func X3.EN_TEXT_COUNT_OCCURRENCES("How many times has the word Time this time?", "time", 1)
Returns : 2