example sought: creating dynamic structures at runtime (DLM) [message #32515] |
Thu, 10 October 2002 06:58 |
Sidney Cadot
Messages: 7 Registered: October 2002
|
Junior Member |
|
|
Hi all,
Does somebody have an example on how one can create at runtime a structure,
having fields of types that are known only at runtime? As a contrived
example, I would like to be able to have a DLM function GIVE_PRIMESTRUCT(N)
that, given an integer N, returns a struct with N fields, with fields
2,3,5,7,11,13,17,... of type INT and all other fields of type LONG.
My actual application is much more useful (generating structures based on a
data-dictionary that has runtime dependencies) but if I knew how to do the
GIVE_PRIMESTRUCT I'd basically know what I need.
Best regards,
Sidney Cadot
Science and Technology Corp.
The Netherlands
|
|
|