View Full Version : Get to know The Lianja/VFP Framework with JavaScript

2018-04-24, 00:00
Here is some example code using the LIanja/VFP Framework.

This is exactly the same code in JavaScript and TypeScript as it is in Lianja/VFP. So if you know VFP there is nothing to fear about JavaScript or TypeScript. (The semi-colons at the end of the line in JavaScript are optional).

cont = createObject("container")
cont.backcolor = "white"
cont.layout = "Vertical"
cont.addObject("labtitle", "label")
labtitle.caption = "EMPLOYEE DETAILS"
labtitle.backcolor = "lightblue"
labtitle.alignment = "center"
cont.addObject("lab", "label")
lab.backcolor = "lightgreen"