Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session based class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01002130
Message ID:
01007316
Vues:
17
David,

I think your idea of dll is very nice one. Otherwise you would need to have a utility program with your non-visual classes defined in it. You may share this program between projects.

>Hi Nadya,
>
>Thanks for your suggestion in changing the first line of code to make it a session based class, i haven't tried it out but that is not what i want. I am sorry that i did not make myself clear from the beginning.
>
>The story is I have a session based class that i would like to package it for re-use by other projects/parties. I thought it would be good to package it as a VCX rather than in .PRG/FXP format. But I don't know how to create a VCX from the Fox Command Window. It seems that only the Visual Class Designer can create VCX. (Correct me if I am wrong.) But my class is session based, so I couldn't use the Class Designer to create it. Kind of a dilemma.
>
>The only thing i can thought of right now is to compile the class into a DLL for re-use...
>
>Any further suggesion is welcome.
>
>Thanks,
>David
>
>
>>Basically, the originator of the thread asked, is it possible to create a visual class based on Session class. The answer is NO, but if you're not comfortable by designing class in code, you may try the trick, I was describing, e.g. design your class as a custom visually, but once you've done all the work, change the first line of code. That's the idea I came up today and never tested, but I think it should work.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform