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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DISP STRUCT is UGLY 2

Status
Not open for further replies.

Shanachie

Programmer
Jun 18, 2000
92
US
Is there another way to print the structure? Using DISP STRUCT TO PRINTER makes ugly output: lines wrap aroundso that each field's info is across two or three lines. There's got to be a better way or some utility to do this.

Shanachie
 
try using copy stru extended, will create a table containing
the structure, then modify new table. Recommend that you shrink size of field_name to 10 or 20 characters, then you can delete fields you don't need and then do list to printer
 
setting your page orientation to landscape, and then LIST(ing) structure to print might be a quick way to avoid your problem
Pete Bloomfield
Down Under
 
Shanachie,

If you issue the SET ALTERNATE TO... & SET ALTERNATE ON commands before issuing the DISPLAY STRUCTURE command, the output goes to the file you specify and looks quite nice, although only in a mono-spaced font like Courier. You can then adjust the type size and print it.

Hope that helps,

Stewart
 
Check out this site, it has a downloadable utility that will take care of printing your table structure:


The util is called: GerryWhite.zip

HTH,
Weedz (Wietze Veld)
veld4663@exact.nl

They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best.

After the GoldRush - Steve McConnell
 
I like :

COPY STRUCTURE EXTENDED TO "mystructure"

Then I call a report form I created just for this:

USE "mystructure"
REPORT FORM "mystructure" TO PRINT


 
OldBitByter, that was the solution for me. Thanks!

Now, as one answer always gets another question:

Where is the field comment? I'd like to include any field comments in my documentation.

TIA
Shanachie
 
If you liked that one, you'll love this!

The field comments are contained in the database container, not the table. If you have a database container named photos, with a table in it named labs, and you add a field comment to lab_id within labs, you can open the database container by:

USE photos.dbc

Note that the database container is just another table with the extension of .dbc.

You have to close your project/database to use the .dbc. Also, copy the .dbc to another area just in case you make an unintentional modification.

You will now see information on all the tables in your container. If you go to the labs section (each row has the objecttype field indicating if it is a table, field, index, or whatever) and browse down until you find labs (id'd as a table in objecttype) you will see it's fields listed below it. There are memo fields for Property, Code, Riinfo, and User. You are interested in the Property memo. Note that memo fields with something in them are capitalized. Open the Property for your field and you will see some non-display characters, maybe your default value statement, more non-display, etc.. until you see your comment. If you precede your field comments with ** or something similar and end the same way, you can use the ** with the AT() function to locate your comment and strip it out in your report form.

Hope this helps you get headed in the right direction.
 
Thanks, OldBitByter! That's what I needed to know. It's going to be a bit convoluted getting in into the report but now I know how to do it.

Hmmm, &quot;OldBitByter&quot;? I think my Grand-Daddy kept a bottle of that in the woodshed. <g>

Shanachie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top