Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ISSUE: set getfile/getpict/putfile start directory
Message
From
25/08/2005 10:40:32
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01043828
Message ID:
01043883
Views:
17
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform