Contents:

 

 

Introduction


News blog


What is Servoy?


Getting Started


Comparison Servoy/VFP


Performance


How-To's

 

Code Reference

 

VFP2Servoy Toolkit

 

 

Contact / feedback

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FOR EACH ... ENDFOR - array.ForEach()



Executes a set of commands for each element in an array.

 

VFP code example

Dimension myArray(3)
myArray(1)="a"
myArray(2)="b"
myArray(3)="c"

For Each myVar in myArray
   ? myVar
EndFor

 

Servoy code example

function printAll(params) { application.output(params);}

var
a = ['a', 'b', 'c'];
a.forEach(printAll);

 

 

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