Contents:

 

 

Introduction


News blog


What is Servoy?


Getting Started


Comparison Servoy/VFP


Performance


How-To's

 

Code Reference

 

VFP2Servoy Toolkit

 

 

Contact / feedback

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INT - globals.INT()



Evaluates a numeric expression and returns the integer portion of the expression. Because the Math library in Javascript does not have an INT() function it has been added to the VFP2Servoy Toolkit using serveral other Math functions.

 

VFP code example

INT(3.75)  && return 3  
INT(-3.75) && return 3  

 

Servoy code example

var num = -3.75
if(num < 0){Math.ceil(num)}else{Math.floor(num)};

// alternatively:

globals.INT(-3.75); 


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