Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Breaking up vcx files
Message
 
 
À
15/06/2002 21:33:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00668967
Message ID:
00669115
Vues:
12
Hi!

In addition to what already proposed in this thread, I know 2 other methods:

1. You can use Drag & Drop in the project manager between 2 class libraries. Create a project and add class library to project. Create anotehr temporary class in a new class library and save. Close the class designer and delete that class in a project manager (you will get an empty classlib file). Then do D&D for classes you want to copy into new class library. Use Clear All command to clear classes loaded into memory, then delete copied classes in the source class library.

2. Using USE command, open the VCX file as a DBF. In a browse window for it you can see that each class records are stored continuously in the file, so you can use COPY TO ... NEXT NN command to copy a single class into another VCX file as just plain DBF records. Then delete these records and use PACK command for source VCX. This is a good approach when you have really HUGE number of classes in classlib - this allows you to automate copying by creating a program to copy, for example, all classes that fit certain condition. Note that VCX have a header record, as well as each class have a footer record. The number of records that a single class occupies is stored in some field in the first record of each class.

Of course, DO A BACKUP before doing any of above.

Hope this helps.

>I currently have all my classes in 1 VCX file.
>I would like to break them up into several different VCXs. Is there some way to do this without having to go in and redefine every class based on the ones I want to separate?
>Specifically, I would like to have all my base classes alone in 1 VCX.
>
>TIA
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform