Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting classes into 1 vcx
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00048070
Message ID:
00048422
Vues:
21
>Barbara, a question if I may:
>I have now created my own toolbar with myclasses established apart from visfoxpro's standard classes. Problem is prior to this milestone I created a nice form and customized it extensively using the standard classes. How can I transfer the work to my own standard form without losing my prior effort?

First, make a backup. Make 2 if you want. Then open the form as a table

USE myform.scx

Go through the form looking at the fields CLASS and CLASSLOC. You can change these to match your own forms with REPL or individually if there aren't too many (LOL). CLASS should contain the correct name of your new class (mytxtbox for textbox, etc.) and CLASSLOC is the location of the class. DON'T hardcode the full path. In my forms, I have code like

..\o3libs\o3fwctrl.vcx

which shows the library is in a subdirectory under the project file.

Probably should try a couple of records and then close the form/table and check it as a form. If it's working, finish the job.

I do this regularly when copying forms from old projects. It will NOT change any changes you made to a control in the properties area. All those changes will remain the same.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform