Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public vs Private Datasession
Message
De
14/12/2000 13:53:59
 
 
À
14/12/2000 11:16:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00453417
Message ID:
00453547
Vues:
16
>>>>>>>>>>>>>>
In particular what are the side affects of changing a forms datasession from public to private. The application does
>use a few global variables, but the are thinks like userid, timeout for message boxes, etc (around 5 or 6).
>
>The forms are in two broad catagories:
>
>1. front end for reports where datasession is in the form not the report.
>
>2. data entery forms which may call other forms.
>
>The application was rewritten in VFP 5 (orignal was FPW 2.6)
>
>It needs to be moved to VFP 6 and eventually 7.
>>>>>>>>>>>>>>

Check out http://fox.wikis.com/wc.dll?Wiki~DataSession~VFP

>>>>>>>>>>>>>>
The application does use a few global variables, but the are thinks like userid, timeout for message boxes, etc (around 5 or 6)
>>>>>>>>>>>>>>

Public variables are a bad idea because they break encapsulation. Problems can creep up that are hard to debug.

Use properties in an application object instead. Could even be properties you add to _Screen

See also: http://fox.wikis.com/wc.dll?Wiki~PublicAndPrivateVariables~VFP


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform