Contents:
Introduction
News blog
What is Servoy?
Getting Started
Comparison Servoy/VFP
Performance
How-To's
Code Reference
VFP2Servoy Toolkit
Contact / feedback
|
ASCAN() - array.indexOf
Searches an array for an element containing the same data and data type as an expression.
VFP code example
DIMENSION aArray(4)
aArray(1)="Jones"
aArray(2)="Smith"
aArray(3)="Peter"
aArray(4)="John"
? ASCAN(aArray, "Peter")
&& returns 3
|
Servoy code example
var aArray =
["Jones", "Smith", "Peter", "John"];
application.output(aArray.indexOf("Peter")) //
outputs 2 (zero-based!)
|
|
|
External resources:
vfp plugin
ServoyWorld 2012 pics
Official Servoy website
Ken Levy on Servoy
Servoy info
Servoy Forum
Servoy Documentation
|