News blog

What is Servoy?

Getting Started

Comparison Servoy/VFP




Code Reference


VFP2Servoy Toolkit



Contact / feedback















OCCURS() - utils.stringPatternCount()

Returns the number of times a character expression occurs within another character expression.


VFP code example

? OCCURS("a", "abracadabra")                   && returns 5


Servoy code example

utils.stringPatternCount("abracadabra", "a");  // returns 5

// alternatively:

globals.OCCURS("a", "abracadabra");            // returns 5

Note: OCCURS() is a function of the VFP2Servoy Toolkit



External resources:


vfp plugin


ServoyWorld 2012 pics


Official Servoy website


Ken Levy on Servoy


Servoy info


Servoy Forum


Servoy Documentation © 2010-2012 • All rights reserved • Contact: