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

Display records like in Visual dBase5

Status
Not open for further replies.

klasw

Programmer
Aug 13, 2001
1
0
0
SE
Hello!

I have been using dBase and Visual dBase for quite some time. Now I am moving to Delphi which I use together with dBase-tables. In Visual dBase 5.5 and earlier versions you can display a record in 3 diffent ways. You change display mode by pressing F2 (or mayby F3, I don´t remember rignt now).
1. The common line display (good for most purposes)
2. Display like a lot of squares connected together, something like this:

(record 1)
field1|field2|field3|field4|field5|field6|field7|
field8|field9|field10|field11|field12|field13|field14|
field15|field16|field17|field18|field19|field20|field11|

(record 2)
field1|field2|field3|field4|field5|field6|field7|
field8|field9|field10|field11|field12|field13|field14|
field15|field16|field17|field18|field19|field20|field11|

and so on. This is extremely useful when you fill in data from surveys whith houndreds of fields. This is what I want to do in Delphi.

3. Each field on a new line:

(record 1)
field1
field2
field3

(record 2)
field1
field2
field3

Also useful in some cases.

Do you have any idea of how to show records in Delphi, I use version 5, like in 2? I would love to get some help on this.

Best wishes
Klas Westholm
Klas.Westholm@datakatten.se
 
One possibility would be to use a Page Control with 3 pages:

Page 1 a DbGrid
Page 2 a DbCtrlGrid with data controls laid out to give a type 2 display
Page 3 another DbCtrlGrid with data controls laid out to give a type 3 display

X-)
Billy H

bhogar@acxiom.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top