Contents:

 

 

Introduction


News blog


What is Servoy?


Getting Started


Comparison Servoy/VFP


Performance


How-To's

 

Code Reference

 

VFP2Servoy Toolkit

 

 

Contact / feedback

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PADL() - globals.PADL()



Returns a string with the length of nLength padded with cPadChar on the left.

 

VFP code example

myVar = "9"
? PADL(myVar,2,"0")       && Outputs 09

 

Servoy code example

var myVar = "9";
application.output(globals.PADL(myVar,2,"0"))  // Outputs 09

Note: PADL() is a function of the VFP2Servoy Toolkit

 

Conclusion

When you look at the code of the PADL function in the VFP2Servoy Toolkit you see that there is no easy way to do this in Servoy (or we haven't found it yet) so here using the function instead of the Servoy syntax saves time. 

 

 

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