Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exporting field comments

Status
Not open for further replies.

finglem

Technical User
Nov 14, 2003
66
GB
I have managed to export into excel a list of all tables and fields from a VFP6 Database (with a lot of help from this community) I would also like to export the field comments. Is this possible? I have managed table comments but not the actual field comments.
Any ideas would be appreciated.
 
Try this:

MyTable_and_Field="MyTable.FieldName"

?DBGETPROP(MyTable_and_Field, "Field", "Comment")

Brian
 
Finglem,

When I saw your question, my first thought was: Use AFIELDS() and pick up the value in the 16th column of the array. But now I see that you are right: It returns the table comment, not the field comment.

I find that completely illogical. The function returns field-level information, but the comment is at the table level.

Mike


Mike Lewis
Edinburgh, Scotland
 
I thought I knew how to do this - but I was wrong.

I now know that field comments are held in a memo field named Property of the dbc table. There are unreadable characters before and after the comment but you might be able to extract the comments by reading the first contiguous string of alphanumerics.

WHy isn't there a smiley with a beard?[mad]

Geoff Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top