Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change to European date
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01663305
Message ID:
01663456
Vues:
182
>>>>I created a custom class that in its Init() event I do all the SET commands for the data environment. This class was then added to my form class which has a private data session. This gives me one place to manage all the SET commands for a private data session.
>>>
>>>First, thank you. Do I understand correctly that all of your forms are based on the form that has this custom method? For example, in my app almost all forms are based on a form myform. So I could then add a custom method to this form to call in the Init of the form. Is this the approach? Otherwise, I don't understand what you mean by "a custom class that is its Init() event".
>>
>>I normally set all private DS settings in the Load event, Init may be too late.
>
>I wonder why there is no global SET DATE (or SET CURRENCY) setting that would work without code in every Load method. For example, I would be surprised if the European developers of VFP have to code it in every Load method. It probably works for them out of the box. Or is it because they buy a different version of VFP? or their settings inherits from the their Windows OS?

It is because they use a form's class. They set all their settings in the Load of the base class and that's it. That's the normal practice.This is what we have here as well.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform