Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code Standards
Message
From
27/09/2003 03:01:14
 
General information
Forum:
Visual FoxPro
Category:
COMCodebook
Title:
Miscellaneous
Thread ID:
00832733
Message ID:
00832906
Views:
29
>
>Hi Craig,
>
>I'm reading this article now. Seems like I used bad continuation in my code (I usually put + at the first line).

Use whatever works for you.

>
>I also use lower case for VFP functions (adapted this technique from my colleague, though 2 other colleagues prefer upper case). Looks like I would have to switch anyway, since intelligence puts VFP words in upper case.

There are several options for how you want Intellisense to handle VFP functions, commands, etc. See the General page of the Intellisense Manager.

>
>But I'm not sure about this statement:
>7. Avoid use of STORE
>
>Why do you say it? What if you need to assign one value to multiple variables?

That's bad form and makes the code more difficult to read. See Code Complete for details. Use one line for each assignment.

>
>Also this would work
>
>store 0 to ('thisform.txt'+ TRANSFORM(m.lnI)) How would you write that statement otherwise?

I don't number my properties/variables except in rare occassions and then I use the exact name I need. Again, see Code Complete.

>
>Thanks again.

Now, having daid all that, my standards are my standards. You should use what works for you. However, you should adopt a single standard for all the developers in your office.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform