Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session based class
Message
 
To
08/04/2005 14:49:57
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01002130
Message ID:
01005008
Views:
17
Thanks for your suggestion. What I'd like to do is to use the Visual Class designer in FoxPro to create a class based on Session, so that the session based class will be stored in a VCX file.

Based on my understanding, a class based on Session cannot be in a vcx??


>Remember however, that you can run a visual class in a private datasession.
>
>* Session.PRG
>DEFINE SessionBase AS Session
>   PROCEDURE Create(Class, ClassLib)
>      RETURN NEWOBJECT(m.Class, m.ClassLib)
>   ENDPROC
>ENDDEFINE
>
>Write code like this:
>
>oSession = NEWOBJECT("SessionBase","Session.PRG")
>oMyVisualObject = oSession.Create("MyVisualClass", "MyClassLib")
>
>
>
>>>>Is it true that I cannot use the Visual Class Designer to create a class based on the Session class?
>>>
>>>Yes, the Session class can only be subclassed in code.
>>
>>Thanks for the answer!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform