Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to move class from a prg into a classlib
Message
 
 
À
05/01/2010 11:27:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01441978
Message ID:
01442165
Vues:
73
>>>Aren't there some issues with doing this?
>>>
>>>It would be cool to have the option to work on my classes as a VCX or PRG depending on what I wanted to do. But I thought there was some issue about whether you could make a round trip liek this.
>>
>>Non-visual classes you have to design in a prg.
>
>You mean if it is based on Custom?
>
>I have several classes in a VCX that are based on Custom. So you're saying a Textbox class could round-trip, but not a class based on Custom?
>
>What if the VCX had one TextBox and one Custom. What would happend if I tried to round-trip that?
>
>.

No, I meant class based on session. It can only be defined in a prg. I forgot other non visual classes. As I trick I used I started to create my business object class (subclass of session based) as a custom based class in a VCX first.

You can define custom based class in VCX or in PRG and switch between the two with no problems using the utilities Prg2VCX and VCX2Prg.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform