comp.lang.ada
 help / color / mirror / Atom feed
* Сreate attributes.
@ 2018-12-22  5:37 eduardsapotski
  2018-12-22 19:13 ` Brad Moore
  0 siblings, 1 reply; 4+ messages in thread
From: eduardsapotski @ 2018-12-22  5:37 UTC (permalink / raw)


Sorry for the stupid question...

For example. I have type:

   type Person is record
      First_Name : Unbounded_String := Null_Unbounded_String;
      Last_Name : Unbounded_String := Null_Unbounded_String;
   end record;

There is a list:

   package People_Package is new  Ada.Containers.Vectors(Natural, Person);
   People : People_Package.Vector;

Next, I want to display this list with headers:

----------------------------
|   NAME    |   SURNAME    |
----------------------------
|   John    |    Smith     |
|   Ada     |   Lovelace   |
...
----------------------------

Can I use attributes to display headers?
For example something like this:

People'First_Name_Header


How can this be implemented?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-01 18:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-22  5:37 Сreate attributes eduardsapotski
2018-12-22 19:13 ` Brad Moore
2018-12-28  9:26   ` eduardsapotski
2019-01-01 18:47     ` Brad Moore

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