Contents:

 

 

Introduction


News blog


What is Servoy?


Getting Started


Comparison Servoy/VFP


Performance


How-To's

 

Code Reference

 

VFP2Servoy Toolkit

 

 

Contact / feedback

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GETWORDCOUNT() - utils.stringWordCount()



Counts the words in a string. The VFP2Servoy implementation als supports a delimiter parameter (see sample).

 

VFP code example


cString = "AAA aaa, BBB bbb, CCC ccc"
? GETWORDCOUNT(cString)          && Displays 6

 

Servoy code example


cString = "AAA aaa, BBB bbb, CCC ccc";
utils.stringWordCount(cString);                 // returns 6

// alternatively

cString = "AAA aaa, BBB bbb, CCC ccc";
globals.GETWORDCOUNT(cString);                  // returns 6
globals.GETWORDCOUNT(cString, ",");             // returns 3


Note: GETWORDCOUNT() 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

 

VisualFoxpro.com © 2010-2012 • All rights reserved • Contact: info@visualfoxpro.com