Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Table Structure - Field Comments
Message
From
28/12/2000 13:22:48
 
 
To
28/12/2000 13:08:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00457435
Message ID:
00457453
Views:
21
>Hello all and a happy new year,
>
>I'm trying to copy the data from a file structure into an Excel spreadsheet. I'm particularly interested in the "Fields Comments" field, and others, which do not copy with the "Copy Stru Extended" command. I can copy fields from a data table into Excel but how do I access the "data" from a table structure? TIA.
>
>Regards,
>
>Paige

You could do something like this - I used a long character field instead of a memo field since memo fields do not copy into Excel.
use mytable
set database to (cursorget("database"))
copy structure extended to mytablestru
alter table mytablestru add column field_cmt c(254)
sele mytablestru
repl field_cmt with dbgetprop("mytable."+allt(field_name), "field","comment") all
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform