Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bind a Timer to one private datasession
Message
From
17/08/2003 03:34:56
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00819469
Message ID:
00820865
Views:
16
Hi Sergey,

I have resolved.

On VFP any object is bind to one datasession, only prg procedure are
free datasession.

If you call a method of a object "objectA",
VFP, before enter on objectA.method ,
change current datasession to the datasession of "objectA",
after return by objectA.method, VFP restore the datasession
of the caller.

I implement a timer for processing a queue of jobs.

I cannot implement a "free datasession timer".
I need one timer for any datasession,
or pass caller datasession, set it, work, restore timer datasession,
but with this last solution i have found problems.

Example:

define class MyCustom as custom
procedure procCalled
? SET("DATASESSION")
enddefine


- on default datasession, x=CREATEOBJECT("MyCustom")
- do a form with "private datasession"
- by form click() call x.procCalled

On VFP help is not clear if a object, created with CREATEOBJECT()
is a neutral/free datasession or a bind datasession.

I don't try any combination, for now i known this.

Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform