Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing The DataEnvironment
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00142671
Message ID:
00144240
Vues:
19
>When you create a form or a report with a DE, the CursorSource is
>entered by VFP. In addition, it is RO at design time, but RW at
>runtime. If you move the DBF to another directory the file can't
>be found and VFP issues an error.
>
>For the application I'm writing I have a setup screen which allows
>the user to enter the directory that various files are found in.
>I've been wrinting custom code in the BeforeOpenTables method to
>change the CursorSource.
>
>I'm wondering if it's possible to create a custome DataEnvironment
>class which could be automatically used with each form or report
>that I create.
>
> ...kt
Keith their is a nother way!

You will found in the File section the VCX Editor by Rock Legendre.
FoxPro interface will not let you create a class base on the DE But the VCX editor will. The VCX Editor modifies the tables *.VCX and you can then create a class base on the DE. The only bad point to this is the fact that you need to use the VCX Editor to edit the code in the class.

For support on the VCX Editor contact Rock Legendre
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform