Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Form Textboxes based on a User Defined Type

Status
Not open for further replies.

SteveJR

Programmer
Aug 13, 2001
72
GB
Hi,

Does anyone know if it is possible to create a form with text boxes from a UDT? For example:

Public Type a_UDT
a as string * 1
b as string *1
End Type

The above would create a form with 2 text boxes called a_UDT.a and a_UDT.b.

Furthermore, is it possible to loop through the elements of a UDT and populate the text boxes?

Thanks,

Steve
 
That's not quite what is being asked ...

I'd guess that the OP is trying to see whether there is any way of reading the definition of a UDT at run-time and then using that as the skeleton to create a form at run tikme (the bit you post addresses)

The answer to this is yes, it can be done, using the TypeLib Information Library, although the technique is slightly convoluted.

The question is ... is this really the best way to proceed. It seems to me that something like XML might be better
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top