Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to auto document code?
Message
 
 
To
13/03/2000 15:59:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00345128
Message ID:
00345460
Views:
17
Hi Peter,

I use this technique: (thanks George Tasker & Ken Weber for helping me in this):
All files are stored in VFP Home() directory.

In config.fpw I have this line:

command=do HOME() +"vfpstart"

File Description.txt:
********************************************************************
* Description.......:
* Calling Samples...:
* Parameter List....:
* Created by........:
* Modified by.......:
********************************************************************

vfpstart.prg
********************************************************************
*  Description.......: Startup program for Visual FoxPro
*  Calling Samples...: 
*  Parameter List....: 
*  Created by........:  
*  Modified by.......: Nadya Nosonovsky 02/10/2000 05:28:31 PM
********************************************************************
if not "FOXTOOLS.FLL" $ upper(set("library"))
	set library to home()+'Foxtools.fll' additive
endif
on key label F7 do home()+'InsertDesc.prg'
on key label f3 keyboard 'Nadya Nosonovsky '+ttoc(datetime()) plain
*_screen.caption=version()
set default to (getdir('d:\redp\appl\','Select directory to start'))
_screen.icon='d:\redp\appl\commonwg\bmps\wlogo.ico'
_screen.caption=space(10)+'My wonderful VFP 6.0 SP3'
InsertDesc.prg
********************************************************************
*  Description.......: Inserts description into open edditing window
*  Calling Samples...: ON KEY LABEL F7 do InsertDesc
*  Parameter List....: 
*  Created by........: Ken Weber 12/28/99
*  Modified by.......: Nadya Nosonovsky 01/03/2000 10:18:11 AM
********************************************************************
local cClipText

cClipText = filetostr(home()+'Description.txt')
_ClipText=cClipText
keyboard '{ctrl+v}' plain
So, it's very simple for me. When I create a program, I hit F7 and F3...



>I’ve seen this from time to time and it looks automated. Can someone tell me what creates this code header?
>It would be nice to have an automated Modified by in Method code.
>
>P.S. I hope you don’t mind me borrowing this Nadya.
>
>*******************************************************************
>* Description.......: TestRandom
>* Calling Samples...: TestRandom (100)
>* Parameter List....: pNumber
>* Created by........: Nadya Nosonovsky 03/13/2000 01:38:52 PM
>* Modified by.......:
>********************************************************************
>
>Thanks
>Peter
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform