My.ADVISOR.com Sign-In
ID
Password

Member Center / Sign-Up
Go to Article
Advanced Search 

ADVISOR VIEW

Changing the Way You Do VFP Development

VFP 8 offers an incredible mix of new functionality and development productivity tools.

By Tamar E. Granor, Technical Editor, FoxPro Advisor


Although FoxPro Advisor has already published articles about Visual FoxPro 8, this issue is our official VFP 8 launch issue. All articles look at new features of VFP 8.

VFP 8 was released to manufacturing at the end of January and became available to MSDN subscribers less than a week later. By the time you read this issue, it should be available through retail channels.

I want to focus here on what VFP 8 offers that will change the way you work.

Changing the way you code
The first area that's really different in this version is dealing with data, especially remote data. The new CursorAdapter class lets you work with ADO, ODBC, XML, and native VFP data the same way. You can design and test an application with native data, then change a couple of properties and work with remote data. Same thing if you suddenly need to switch from ODBC to XML or ADO. CursorAdapters give you the best of remote views and SQL Pass-through, but eliminate some of the problems of those approaches to client-server work.

The next big area you'll want to rethink is error handling. The introduction of structured error handling with the TRY-CATCH-FINALLY syntax lets you eliminate tons of nested IFs and CASE statements. It also results in more readable code. For details, see the Answers column in the February 2003 issue and Andrew MacNeill's article in this issue.

The ability to bind code to VFP events and to fire events offers new solutions to old problems. The BINDEVENT() function lets you connect code to events dynamically so, for example, you can hook a progress control into an existing process without having to touch the original process's code. Similarly, you can fire code for events occurring in objects for which you don't have source.

Dealing with certain container classes, such as pageframes and grids, has long been a problem because they always used the appropriate baseclass for their contents. VFP 8 lets you indicate what page class is used in a pageframe, what column and header classes are used in grids, what data environment class is used in a form, and so forth. This means you can design without having to work around artificial limits.

Changing the way you work
VFP 8's new tools change things, too. The Toolbox replaces the Form Controls toolbar, but you can use it not only to put controls on forms, but to manage Web services, pieces of text, and other files you use frequently. See Cindy Winegarden's articles in the January 2003 issue and this issue for more information.

Now that we have Code References, it's hard to imagine how we ever lived without it. This new tool lets you search for, and even replace, strings or regular expressions in a project. I've used it extensively to examine the code for the new tools. It also offers the ability to quickly find the definition of an item. For more information, see the Answers column and Andrew MacNeill's article, "Code References Tool Outdoes the Filer," in the March 2003 issue.

The Task Pane Manager may completely change the way you approach the development environment. It comes with built-in panes for a number of common tasks and can be extended in all kinds of ways. Expect third-party vendors to provide VFP task panes for their products. For more information, see my article in the February 2003 issue, "Introducing the Task Pane Manager," and my article in this issue.

There are also significant enhancements to several of the existing tools. The Query/View Designer has the most changes. For the first time, it's reliable enough to handle almost any query you can throw at it. Best of all, it now features two-way editing, so you can directly change the code it generates.

There are a number of usability changes to the Form Designer and Class Designer, including a new View Parent Code button. The Report Designer also has some changes, including a new _PAGETOTAL variable that makes the "Page x of y" formulation a breeze.

Supporting future development
If all these changes and the dozens I haven't mentioned aren't enough to get you to upgrade, consider the future of Visual FoxPro. You need to make it clear you're still enthusiastic about this product, and want Microsoft to continue to enrich it. You can do that by purchasing VFP 8.

Another way you can support the VFP team is by sharing your successes with the world. Microsoft has a template for writing case studies at http://www.gotdotnet.com/team/vfp. The best will be posted at Microsoft.com.

I'm more excited about Visual FoxPro 8 than any new version since the transition to object-orientation in VFP 3. This version is solid and offers an exciting mix of new functionality and tools that let you create better applications more easily. If you've worked with the public beta, you know what's in store for you; if you haven't, I think you'll be pleased.

Microsoft says that 80 percent of the changes in Visual FoxPro 8 came from community requests. You asked for it, you got it, now support it.


Change the Way You Do VFP Development

1 reader comment:

What do YOU think about this topic? Share your advice and thoughts using this form.

Your Name

REQUIRED : PUBLIC

Your E-Mail

REQUIRED : PRIVATE

Job, Company

OPTIONAL : PUBLIC

City, State, Country

OPTIONAL : PUBLIC

Your Web Site

OPTIONAL : PUBLIC

Your Comment

Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

Technical Editor Tamar E. Granor, Ph.D., is the owner of Tomorrow's Solutions, LLC, a company that works with other developers through subcontracting and consulting. She is a Microsoft Certified Professional and a Microsoft Support Most Valuable Professional. Tamar is co-author of What's New in Visual FoxPro 8.0 (Hentzenwerke Publishing), Hacker's Guide to Visual FoxPro 7.0, Microsoft Office Automation with Visual FoxPro, and other books. tamar@thegranors.com.

Printer-friendly
page layout

Keyword Tags: ADO - ActiveX Data Objects, Application Development, Database, Database Development, Microsoft, Microsoft Visual FoxPro, ODBC - Open Database Connectivity, Programming

ADVISORAMA
Gossip runs down more people than vehicles.

ARTICLE INFO

DataBased Advisor

Print Edition: April 2003, Page 5

FREE ACCESS FREE ACCESS

SUBSCRIPTION STATUS
You are not signed-in. If you are a subscriber to this publication, sign-in above to access locked articles. To subscribe or renew go to www.AdvisorStore.com.

Subscribe to FileMaker Advisor Magazine

Read the advanced guide to creating custom business database solutions with FileMaker software. Subscribe now to gain access to all the archives and downloads.

FileMaker.Advisor.com

Subscribe to Advisor Basics of FileMaker Pro

Learn the fundamentals of using FileMaker Pro software. Every issue gives you step-by-step instructions on creating the databases you need. Subscribe now!

FileMaker.AdvisorBasics.com

Showcase Your Smarts

Submit your tips, techniques and advice and let Advisor promote your business and build your career. Show the world what you know!

AdvisorTips.com

Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
Portions copyright ©1983-2008 Advisor Media, Inc. All Rights Reserved.
Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, Inc. in the United States and/or other countries.
Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
Hosted by Prominic.NET Website powered by
LOTUS SOFTWARE
GRANT125 posted 03/03/2003 modified 12/03/2008 03:34:10 AM ztdbms/ztdbms
domino-144.advisor.com my.advisor.com 12/03/2008 05:37:47 PM