Displaying data from a custom data type

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..
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

vlookup 2
vlookup 4
Counting Minutes 4
Counting records 3
new table from existing table 1
simple math problem? 24
Addition of two values 5
How to count record 10

Top