Contents:

 

 

Introduction


News blog


What is Servoy?


Getting Started


Comparison Servoy/VFP


Performance


How-To's

 

Code Reference

 

VFP2Servoy Toolkit

 

 

Contact / feedback

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GETWORDNUM() - utils.stringMiddleWords()



Returns a specified word from a string.

 

VFP code example


cString = "AAA aaa, BBB bbb, CCC ccc"
? GETWORDNUM(cString, 3)          && Displays BBB
? GETWORDNUM(cString, 3, ",")     && Displays CCC ccc

 

Servoy code example


cString = "AAA aaa, BBB bbb, CCC ccc";
utils.stringMiddleWords(cString, 3, 1);         // returns BBB

// alternatively

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


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