Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic creation of Public properties in a Class
Message
 
To
22/09/2000 00:46:25
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00419539
Message ID:
00419635
Views:
26
>Hi all,
>i am not sure if what i want to do is at all possible in VB but here goes:
>i am currently creating an instance of a class, and based on a variable in the form need to create extra Public Property Get() AS STRING
>can you dynamically assign these extra properties in a class instance?

No you can't add properties at run-time since classes are compiled.

Maybe can you create a structure of variant containing the name of your property and its value.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform