Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Write to the Command Window?
Message
 
À
07/05/2013 08:13:36
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01572796
Message ID:
01572907
Vues:
69
We seem to think pretty much alike Dragan, we also have a hot key (ctrl-f7) to write a comment, when we press it an input box is showed where you can type your comment (and it will remember it for next time in case you are changing code in multiple places, for examle if I enter in the box "Changes due to HST Transition" (and no, you are not allow to criticize my comments :)) then the comment will look like:
* 05/07/13 09:54:36 AM - HUGO : Changes due to HST Transition
(Instead of Hugo we use my network id, which I do not think I should write it in a forum)

Hugo

>I went minimalist, with a single line, because these tend to accumulate. And I'm alone on this machine, so I don't need personalization. However, I have an intellisense macro for inserting comments:
>
>
lparam oFoxCode
>oFoxCode.ValueType="V"
>lnHours=SET("Hours")
>set hours to 24
>lcSetDate=set("date")
>set century on
>set date ymd
>lcReturn= "*["+ttoc(datetime())+"] " +getwordnum(sys(0),2, " #")+ " -"
>set hours to lnHours
>set date to (lcSetDate)
>return lcReturn
>which is nice for recognizing different people's signatures in the code. And I put the datetime just to sound official and like a real programmer, only to realize, to my surprise, how extremely useful that datetime is. Just a few months down the road, knowing when exactly a comment was written means a lot.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform