Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET TALK for new datasession?
Message
De
03/12/2001 06:45:20
 
 
À
30/11/2001 18:11:08
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00588274
Message ID:
00588631
Vues:
25
Does anyone have a full list of all the sets that require redoing for a new data session?









>>Every time a form starts in a new datasession, VFP sets TALK ON. Is there a way to tell VFP to set TALK OFF with every datasession, or do I need issue SET TALK OFF in every form.Load?
>>
>>Tools | Options | View has both Command Results and System Messages unchecked and that's been Set as Default.
>
>Unfortunately, each datasession comes up with defaults, and there's no easy way to set them in advance. What you can do is to have it all set the way you want it in the .load, but at the class level - do it in your form class and then you can forget about it.
>
>If you have any code in .datasession.beforeopentables or .init, it will fire before form.load, so you better put a Set Talk Off there as well. Standard datasessions in forms can't be subclassed; you may instantiate (thisform.addobject) an object based on a class defined in code (i.e. prg-based, subclassed from Session or Datasession class) and even call it .datasession, but that's somewhat too long, i.e. more hassle. The benefit would be that you could instantiate your forms from classes, without ever needing to have .scx files, and have datasessions in them. I haven't tried this, just speculating.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform