comp.lang.ada
 help / color / mirror / Atom feed
From: randhol@pvv.org (Preben Randhol)
Subject: Re: "Dynamic" object
Date: 2000/03/06
Date: 2000-03-06T17:25:55+00:00	[thread overview]
Message-ID: <slrn8c7qhs.i0.randhol@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: slrn8c7ouf.kji.gisle@apal.ii.uib.no

On 6 Mar 2000 17:58:55 +0100, Gisle S�lensminde <gisle@apal.ii.uib.no> wrote:
>Preben Randhol wrote:
>
>>I'm wondering how to do the following in Ada 95.
>>
>>I want to have a small program as a frontend to a database. Thus the
>>program needs to read the definition of the db and then generate the
>>proper GUI for this. This I think I know how to to, but the problem is
>>how do I define a type that contains the different fields so that I can
>>put it in a linked list?
>>
>>Example:
>>
>>Field 1: First_Name (string of size 30)
>>Field 2: Sirname    (string of size 40)
>>Field 3: Age        (integer of size 3)
>>...
>>Field n: Address    (string of size 80)
>>
>>Any hints much appreciated.
>
>
>I have some problem understanding what problem is. To get a more precise
>answer (at least from me), you should give more details of your problem.


Ok think about it more in the way of making a GUI interface to PostgreSQL where
you can set up the fields as you like in your database. 

So you can make one database which is an address book containing only the
fields Name and Address or you can make a database to organize the books that
you own, etc...

So the program cannot statically (at compile-time) know which fields are
present in the database you want to open. 

-- 
Preben Randhol -- [randhol@pvv.org] -- [http://www.pvv.org/~randhol/]
         "Det eneste trygge stedet i verden er inne i en fortelling."
                                                      -- Athol Fugard




  reply	other threads:[~2000-03-06  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-06  0:00 "Dynamic" object Preben Randhol
2000-03-06  0:00 ` Gisle S�lensminde
2000-03-06  0:00   ` Preben Randhol [this message]
2000-03-07  0:00     ` Simon Wright
2000-03-08  0:00       ` Preben Randhol
2000-03-08  0:00     ` Gisle S�lensminde
2000-03-08  0:00       ` Preben Randhol
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox