Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bind a Timer to one private datasession
Message
De
17/08/2003 03:34:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00819469
Message ID:
00820865
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform