Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ISSUE: set getfile/getpict/putfile start directory
Message
De
25/08/2005 10:40:32
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01043828
Message ID:
01043883
Vues:
16
>>I cannot use a program of this type.
>>
>>On my framework:
>>CD,SET DEFAULT ...
>>
>THEY ARE FORBIDDEN !!!
>
>What's the reason for such restriction?

CD is a global setting, like a public variable,
you can set/get it with various commands,
but it is a public value nothing more, nothing less.

If you remove the commands of writing, it becomes a public constant.

It doesn't now serve to be a genius for to understand,
that a constant doesn't couple the states of two separate procedures,
but a variable yes.

This is the motive for which the use of public variable is dissuaded.

But if everybody dissuades the use of public variable,
why then it is used with so much superficiality
the public variable defined in the system of development?

If during the change of the current directory
is executed some other code,
and this depends on the value of the current directory?

If one wants to write a program with few bugs and easily modifiable it owes:
- to use few coherent schemes
- uncouple the states the more possible.

Other in Message #1043867
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform