Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I create a new object from an object on a form?
Message
De
28/09/2005 11:33:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Can I create a new object from an object on a form?
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01054004
Message ID:
01054004
Vues:
68
This may seem strange but I have run into a situation where I want to do this: Can I create a new object on a screen from an object already on the screen? I have a form with a combobox and an editbox (plus labels, buttons, etc). Based on the value selected in the combobox, a second editbox may need to be added to the screen below the first one. The form size will change to accomodate the new editbox. The first editbox was created at design time but will have certain properties modified at runtime. The second editbox needs to have all the same event and method code that is in the first editbox. Of course when the second object gets created the code creating it will change certain properties, etc., such as the name, controlsource, etc. However, the first editbox may have certain properties already set that I want to keep for the new object.

Now, I know that I could create a class for this but this form gets used extensively throughout our system and I only want to do this in a unique instance of the form. Any insight if this can done would be greatly appreciated.

Jim White
Time is a wonderful teacher. Unfortunately it kills all of its students.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform