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

List stru to print

Status
Not open for further replies.

jspellman

Programmer
Aug 18, 2001
23
US
First just let me say that I have been reading the tips listed for a few months now. I find that the tips and questions are great. I hope this one is not too trivial.

I have used Visual foxpro since VFP6. I also use dBase 4. I have found that the list strucure command is not formatted for printers in VFP6,&7. It is readable but difficult.

Is there a way to create a customizable display/list structure command?


Thanks,

John
 
You could base on the follow and write a program to do so.

use xxxxx
gnFieldcount = AFIELDS(gaMyArray) && Create array
CLEAR
FOR nCount = 1 TO gnFieldcount
? gaMyArray(nCount,1),gaMyArray(nCount,2),gaMyArray(nCount,3),gaMyArray(nCount,4)
* gaMyArray(nCount,1) is the field name
* gaMyArray(nCount,2) is the field type
* gaMyArray(nCount,3) is the field length
* gaMyArray(nCount,4) is decimal point
ENDFOR
 
Another, simple, method is this:

use xxxx
set printer font "Arial",7
list stru to print

Now the text fits on one line
 
John,
As you can see, while LIST STRUCT was left in VFP for backward compatibility, most everone agrees that there are simply better ways to get the information for non-free tables.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top