Contents:

 

 

Introduction


News blog


What is Servoy?


Getting Started


Comparison Servoy/VFP


Performance


How-To's

 

Code Reference

 

VFP2Servoy Toolkit

 

 

Contact / feedback

 

 

 

 

 

 

 

 

 

 

 

 

 

 

$ - globals.CONTAINS()



Returns true if a character expression is contained in another character expression.

 

VFP code example

? "b" $ "abc"                          && returns .T.
? "World" $ "Hello World"              && returns .T.
? "world" $ "Hello World"              && returns .F.

 

Servoy code example

var cSearchFor = "World";
var cString = "Hello World";
if(cString.IndexOf>-1) {
   return true;                             // returns true
}else{
   return false;
}

// alternatively:

globals.CONTAINS("World","Hello World!");   // returns true


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