Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to move class from a prg into a classlib
Message
 
 
To
05/01/2010 11:27:56
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01441978
Message ID:
01442165
Views:
72
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform