News blog

What is Servoy?

Getting Started

Comparison Servoy/VFP




Code Reference


VFP2Servoy Toolkit



Contact / feedback















ASC() - string.charCodeAt()

Returns the ANSI value for the specified character in a character expression.


VFP code example

cString = "Hé"
? ASC(SUBSTR(cString,2,1))  && returns 233


Servoy code example

cString = "Hé";
application.output(cString.charCodeAt(1))  // outputs 233

// Watch out for the fact that the charCodeAt() function expects a
// zero-based index position. To get the charCode for the first
// character in the string you would have to pass in a 0 as a
// parameter

Note: Alternatively use the ASC() 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 © 2010-2012 • All rights reserved • Contact: