Uwe Habermann Venelina Jordanova Programming VFP Code in the front-end of Silverswitch applications
GUINEU
GUINEU? * Use VFP code in Silverlight client projects * So in browsers at the client side * Runs on Mac OS X and in the future on other platforms
GUINEU * Developed by Christof Wollenhaupt * * VFP runtime developed in C# * Adapted version for Silverswitch client applications * Exclusive in Silverswitch * 1 DLL * Execute VFP code in FXP file
GUINEU What can be done with it? * Business logic * Control of the Silverlight user interface * But: * No VFP user interface * (Messagebox, Wait Window, …) * No data access * But these are not restrictions!
GUINEU Integration in Silverswitch * Wrapper-project * VfxGuineuRuntime * FXP file * Save in folder VFPCode * Build: embedded resource * PRG file (to edit with VFP) * Open with VFP as default * Build: none
GUINEU * Declaration using VfxGuineuRuntime; private readonly VfxGuineu _fox = new VfxGuineu(".FXP");
GUINEU * Function call _fox.Do(" ",,, …); * The first parameter is the function name * Following parameters are passed to the function
GUINEU * Passing parameters * Also objects! * Many VFP functions * Many VFP commands * Execution of C# methods * No child objects available
GUINEU * Examples in VFPizza * Customers GUINEU * Orders GUINEU * Get value of property * Set value of property * Save (in C#?)
C# * Examples in VFPizza * Customers C# * Orders GUINEU * Save * Navigation * And more…