View Full Version : DOC_LIBRARY for Windows?

03-31-2009, 11:47 AM
What is the function for extracting header information from user-written procedures and functions on a Windows system? DOC_LIBRARY gives errors (v. 8.00).

doc_library, 'gamma'
;'C:\Program' is not recognized as an internal or external command,
;operable program or batch file.

03-31-2009, 03:11 PM
You can also try the "docs" procedure.

However, please note two things:
a) the gamma function in your example isn't using the standard doc template
b) the error indicates a problem with having a space in the directory tree that contains the function

I'm not sure if "docs" will handle the space either, but on my system it reveals that 'gamma' doesn't have the right comment header information.

04-01-2009, 11:42 AM
I will look into the DOCS procedure. To comment on your notes:
1) the gamma function is taken right out of the DOC_LIBRARY example. Perhaps a different example should have been used?
2) DOCS does not have a problem with spaces. Perhaps DOC_LIBRARY needs better error catching?
3) Neither DOCS nor DOC_LIBRARY return the text as a string instead of printing the info or saving it to a file. Would that be a good enhancement?