Contents:

 

 

Introduction


News blog


What is Servoy?


Getting Started


Comparison Servoy/VFP


Performance


How-To's

 

Code Reference

 

VFP2Servoy Toolkit

 

 

Contact / feedback

 

 

 

 

 

 

 

 

 

 

 

 

 

 

STREXTRACT() - globals.STREXTRACT()



Retrieves a string between two delimiters.

 

VFP code example

** returns: important (case-sensitive)
? STREXTRACT("<B>This</B> text is <b>important</b>", "<b>", "</b>")

** returns: This  (case-insensitive)
? STREXTRACT("<B>This</B> text is <b>important</b>", "<b>", "</b>", 1, 1)

** returns: important  (2nd occurrence, case-insensitive)
? STREXTRACT("<B>This</B> text is <b>important</b>", "<b>", "</b>", 2, 1)

 

Servoy code example


var myLine = "<B>This</B> text is <b>important</b>";

globals.STREXTRACT(myLine, "<b>", "</b>");           // returns important
globals.STREXTRACT(myLine, "<b>", "</b>", 1, true);  // returns This
globals.STREXTRACT(myLine, "<b>", "</b>", 2, true);  // returns important


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