Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic creation of Public properties in a Class
Message
 
À
22/09/2000 00:46:25
Jordan Pastourel
Worksafe Management Systems
Toowong, Australie
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00419539
Message ID:
00419635
Vues:
24
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform