General information
Category:
Object Oriented Programming
>>Jim
>>How do I set up and save a class based on Session in a Class library. "Session" is not available on the drop down - but is in DEFINE CLASS....
>
>David,
>
>You don't, you use DEFINE CLASS in a prg.
Jim, can I give you a simple non-real example of what I would like to do?
Lets say I have an addressing module and it does all sorts of neat things with addresses. It also uses an "Address" table which I wan't to be in a private data session belonging to the class.
I would then want to be able to write, for example, a method called exists..
function exists
lparameter nAddrnum
return indexseek(m.nAddrNum, 'Address', 'Addrnum')
In my main program I would have:
private oAdr
oAdr= NewObject('Address', ....)
Where, how, would you suggest I incorporate a "session" so that this object, which persists for almost the entire application, has it's own "hidden" use of the "address" table? Assume oAdr is currently based on a custom class.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only