Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table Tool
Message
 
To
22/08/2013 12:08:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01580989
Message ID:
01580998
Views:
27
>>Hi Gang!
>>Was there a tool here for printing out the table structure completely?
>>Thanks!
>
>
>You can replicate it fairly easily (untested):
>
>
lnCount = ADOBJECTS(laTables, "TABLES")
>FOR lnI = 1 TO lnCount
>    USE (laTables[lnI]) ALIAS theTable
>
>    ? laTables[lnI]
>    FOR lnJ = 1 to FCOUNT('theTable')
>        ? FIELD(lnJ) + " " + LOWER(TYPE(FIELD(lnJ))) + "(" + FSIZE(lnJ) + ")"  && Doesn't display decimals for numerics
>    NEXT
>
>    USE IN theTable
>NEXT
Thanks!
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform