VFP Upsizing Wizard Tip
Earlier this week I finished writing the chapter on the Upsizing Wizard for the upcoming Sedna update book we are close to completing. In the chapter review Doug Hennig pointed out a possible third way to run it (the first two being from the VFP Command Window and from the Data Explorer). He suggested trying to rename the Sedna Upsizing Wizard to the name of the old Upsizing Wizard and copying it in the Wizards folder under the VFP root.
This got me thinking. All the Wizards are driven off a table called Wizards.DBF. What if I just added a record in this table and pointed it to the new Sedna version? It works. All part of the extensibility of the Visual FoxPro IDE.
First locate the Upsizing Wizard record in the Wizards table:
USE (HOME() + "Wizards\Wizard.DBF") ;
IN 0 SHARED ALIAS VFPWizard
SELECT VFPWizard
LOCATE FOR Name = "Microsoft SQL Server Upsizing Wizard" ;
AND Type = "Upsizing"
Change the Program memo field to:
c:\program files\microsoft visual foxpro 9\sedna\upsizingwizard\upsizingwizard.app
Or alter the path to your environment setup as needed.
If you want both the original and the Sedna version, just do a SCATTER and GATHER and make the change in the second one. I recommend also changing the Name column because each time you start up the Upsizing Wizard from the menu you will select between the two and the Name column is displayed for you to pick which one you want.
The downloads for the chapter will include a program you can run to correct the registration.
Labels: Sedna, UpsizingWizard, VFP
0 Comments:
Post a Comment
<< Home