Answered by:
DEFINE CLASS

Question
-
What is the difference between Custom and Session class
DEFINE CLASS CDIntfEvents AS Custom OLEPUBLIC
DEFINE CLASS CDIntfEvents AS Session OLEPUBLIC
Can I see a difference between these two lines
Wednesday, July 7, 2010 11:58 AM
Answers
-
Yes, the difference exists: Session class is a Custom class havng its own data session.
More is e.g. here:
http://msdn.microsoft.com/en-us/library/fy7ybd0a(VS.80).aspx
http://msdn.microsoft.com/en-us/library/kezh6ea5(VS.80).aspx
http://support.microsoft.com/kb/248116
http://rickschummer.com/blog/2007/08/understanding-session-object-behavior.html
- Proposed as answer by Tom BorgmannEditor Thursday, July 8, 2010 1:24 PM
- Marked as answer by Alex Liang Wednesday, July 14, 2010 10:17 AM
Wednesday, July 7, 2010 12:59 PM -
Hi,
AFAIK a session class can only be instanciated programmatically. This class is not available in design-mode. In addition, session has only a view Properties and methods as it is created to hold a datasession.
The custom object can be used programmatically and during design time. It holds the complete spectrum of properties and methods as most of the other 'fat' controls do.
If you are looking for an class that is really empty, without any methods and properties, have a look at the 'empty' class (only available programmatically).
-> oMyEmptyClass = NEWOBJECT([empty])
Gruss / Best regards -Tom 010101100100011001010000011110000101001001101111011000110110101101110011- Proposed as answer by Tom BorgmannEditor Thursday, July 8, 2010 1:24 PM
- Marked as answer by Alex Liang Wednesday, July 14, 2010 10:17 AM
Wednesday, July 7, 2010 1:03 PMAnswerer
All replies
-
Yes, the difference exists: Session class is a Custom class havng its own data session.
More is e.g. here:
http://msdn.microsoft.com/en-us/library/fy7ybd0a(VS.80).aspx
http://msdn.microsoft.com/en-us/library/kezh6ea5(VS.80).aspx
http://support.microsoft.com/kb/248116
http://rickschummer.com/blog/2007/08/understanding-session-object-behavior.html
- Proposed as answer by Tom BorgmannEditor Thursday, July 8, 2010 1:24 PM
- Marked as answer by Alex Liang Wednesday, July 14, 2010 10:17 AM
Wednesday, July 7, 2010 12:59 PM -
Hi,
AFAIK a session class can only be instanciated programmatically. This class is not available in design-mode. In addition, session has only a view Properties and methods as it is created to hold a datasession.
The custom object can be used programmatically and during design time. It holds the complete spectrum of properties and methods as most of the other 'fat' controls do.
If you are looking for an class that is really empty, without any methods and properties, have a look at the 'empty' class (only available programmatically).
-> oMyEmptyClass = NEWOBJECT([empty])
Gruss / Best regards -Tom 010101100100011001010000011110000101001001101111011000110110101101110011- Proposed as answer by Tom BorgmannEditor Thursday, July 8, 2010 1:24 PM
- Marked as answer by Alex Liang Wednesday, July 14, 2010 10:17 AM
Wednesday, July 7, 2010 1:03 PMAnswerer