General information
Category:
Forms & Form designer
>>Hi Larry,
>>
>>Thanks for the answer. Is is something like below?
>>
>>*** MyProc.Prg. Called from form button click method.
>>LOCAL lnDS
>>
>>lnDS = SET('DATASESSION')
>>loSess = CreateObject('SESSION')
>>SET DATASESSION TO loSess.DataSessionID
>>...
>>...
>>...
>>...
>>loSess.Destroy()
>>loSess = NULL
>>SET DATASESSION TO (lnDS)
>>RETURN
>>
>
>No. You have to do the processing and datasession set inside in the Session object. You can create a custom method to handle that. From the Button.Click method, you simply need to create an instance of your Session subclass and call the appropriate method.
>
>HTH.
Thanks Larry for your patience. Am I correct you are saying as below?
***Button Click Method
lo = createobject(mysess)
lo.myprocess
***In some procedureal file
define mysess as session
datasession=2
function init
set excl off
...
endfunc
function myprocess
...
endfunc
enddefine
Regards.
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