Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Prg from Button::Click
Message
 
 
À
16/12/2003 04:48:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00857996
Message ID:
00859430
Vues:
22
>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform