* Visual FreePro, Jr. example (VJr) FUNCTION Start LOBJECT parms && Can also use LPARAMETERS or () syntax RETURNS void LOCAL lcTxt, lcTitle lcTitle = "My hello world GUI app" lcTxt = "Hello world" MESSAGEBOX(lcTxt, lcTitle) && Implied return if end of functionVisual FreePro, Jr. is designed to be nearly 100% compatible with VFP9, with several added extensions. Visual FreePro (the full version) is designed to be about 80% compatible, and introduces a slightly different syntax:
// Visual FreePro (full version) example (VFrP) function Start | params // ... as needed | returns { // Variables defined here are implied local. You must use 'public' or private to declare otherwise lcTitle = "My hello world GUI app" lcTxt = "Hello world" messagebox(lcTxt, lcTitle) }Both VJr and VFrP have a traditional object model, with several extensions. Empties are more flexible. And everything can be expanded with new PEMs, not just container objects.