Displaying data from a custom data type

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a data interface based on a number of record formats. Every record is
defined as a type i.e. with named elements - e.g.:

Type Record1
val1 as integer
val2 as integer
val3 as integer
val4(10) as SubRec1
end Type

where SubRec1 also is a type with integer elements.

Now I want to display the contents of the intreface data - i.e. show val1,
val2 etc.

Is there a way of showing the contents of such a format based on the type
definition?

As opposed to having to program the display of each individual value?

So I am looking for a generic way of showing the data, instead of having to
make code for every specific value..
 
You could make a subroutine that will display the entire contents of Record1
in the format that you want. Then all you have to do is call that
subroutine. You could also try to overload the operator. I do not know if
you can do it in Access, but in C++, you can overload the operator for
printing/displaying to your format.
 
Back
Top