Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename form object at run-time while form is in use?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00549854
Message ID:
00549882
Vues:
11
Hi!

Yes, with containers it will work, but it is depended on what you're going to do. For what you required to rename controls?
1. To allow other methods reference them correctly by the same way, but just give thes methods different sets of controls?
2. Or did you required that only to show to user different sets of controls?

In second case making controls visible/invisible is enough, though container use will simplify this for you - you will have to do this for containers only.

For the first case you can hold a reference in the form custom property to the container that is current and build all your methods to work through that reference. Than just change reference when you switch container. Do not forget to clear reference in before Destroy of the form ;)

HTH.

>Hello Vlad,
>
>I like the idea of putting all of the controls in a container and having two containers. I hadn't thought of that.
>
>If I do that then I don't need to rename or reassign anything. Then all I need to do is make one container or the other container visible? A single container would fill the entire form. So would it work to turn on one container and make it active or how would I do the container swapping in and out of the form? Never tried it.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform