|
Previous Top Next |
Prototype: | (String pFind, String pSearchS),Long |
pFind | String to search for |
pSearchS | String to search in |
Returns | Number 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: