Visual Extend CursorAdapter VFX 18 E Visual Extend CursorAdapter German FoxPro User Group Venelina Jordanova
CursorAdapter? Class overview „Normal“ Cursor at run-time Properties Methods Inheritance „Normal“ Cursor at run-time Saving data with Tableupdate()
Advantages of CursorAdapter Chance to change the data source at run-time Data types conversion DBC disadvantages Connection information is accesible from DBC container Can be manipulated
Data access conception CBaseDataAccess class (Vfxctrl.vcx) functionality Connection-Manager Programmatic class cconnectionmgr in Vfxfunc.prg Datasource can be changed at run-time Config.vfx - encrypted!
Planing a new application Use CusorAdapter class only! Based on cBaseDataAccess class Advantages: Only one connection will be used Changeable datasource Easy to upsize from DBC to SQL Customers can decide about using DBC or SQL
MSDE and SQL Server Why to use SQL Server? Scalability Security Maintainability MSDE does not contain administrative tools -> VFP Data Explorer
VFP Data Explorer Review and edit the database content DBC SQL Server/MSDE
VFX – Upsizing Wizard Choose the local database to be upsized to SQL Server Select the destination database server, where to store the upsized database SQL Server (all versions) Oracle Name of remote database Tables selection Options Finish!
VFX - CursorAdapter Wizard Creates a CursorAdapter class for every table in the selected database DBC DSN ConnectionString Select the source database Select base class and classlibrary Generating the CursorAdapter classes
Manage Config.vfx Establish the data access for VFX-Application In the IDE At customer side Edit the encrypted file Password is kept in goProgram.cConfigPassword VFXPath.dbf compatible
Thank you! In next video you will see how to create a form using a CursorAdapter as data source Visit our websites: http://www.visualextend.com http://store.esellerate.net/s.aspx?s=STR5180737559 http://forum.dfpug.de or news://news.dfpug.de http://devcon.dfpug.de, http://sqlnet.dfpug.de http://www.dfpug.com, http://portal.dfpug.de