www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Core Class: CountFinds

Previous  Top  Next  


Prototype: (String pFind, String pSearchS),Long

 

pFindString to search for
pSearchSString to search in

 

ReturnsNumber of times that pFind is found inside pSearchS

 

This method is used in FindReplace to determine how many times the string is found.  This is used to accurately allocate memroy with AllocateSearchString.  You can use this method anywhere and it can be very useful if you want to determine how many times a string is found.  The search is not case sensitive.

 

Example:

ITC  ITCoreClass

Code

Message('X is found ' & ITC.CountFinds('X','This x is x'))

!! Returns 2

 

 

See also:

FindReplace

AllocateSearchString

 



Direct link to this page: http://www.icetips.com/manuals/utilities/countfinds_core.htm